Jason Molenda | 5e8dce4 | 2013-12-13 00:29:16 +0000 | [diff] [blame] | 1 | //===-- SWIG Interface for SBQueue.h -----------------------------*- C++ -*-===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | |
| 10 | namespace lldb { |
| 11 | |
| 12 | class SBQueue |
| 13 | { |
| 14 | public: |
| 15 | SBQueue (); |
| 16 | |
| 17 | SBQueue (const lldb::QueueSP& queue_sp); |
| 18 | |
| 19 | ~SBQueue(); |
| 20 | |
| 21 | bool |
| 22 | IsValid() const; |
| 23 | |
| 24 | void |
| 25 | Clear (); |
| 26 | |
| 27 | lldb::SBProcess |
| 28 | GetProcess (); |
| 29 | |
Jason Molenda | aac16e0 | 2014-03-13 02:54:54 +0000 | [diff] [blame] | 30 | %feature("autodoc", " |
| 31 | Returns an lldb::queue_id_t type unique identifier number for this |
| 32 | queue that will not be used by any other queue during this process' |
| 33 | execution. These ID numbers often start at 1 with the first |
| 34 | system-created queues and increment from there. |
| 35 | ") |
| 36 | GetQueueID; |
| 37 | |
Jason Molenda | 5e8dce4 | 2013-12-13 00:29:16 +0000 | [diff] [blame] | 38 | lldb::queue_id_t |
| 39 | GetQueueID () const; |
| 40 | |
| 41 | const char * |
| 42 | GetName () const; |
| 43 | |
Jason Molenda | aac16e0 | 2014-03-13 02:54:54 +0000 | [diff] [blame] | 44 | %feature("autodoc", " |
| 45 | Returns an lldb::QueueKind enumerated value (e.g. eQueueKindUnknown, |
| 46 | eQueueKindSerial, eQueueKindConcurrent) describing the type of this |
| 47 | queue. |
| 48 | ") |
| 49 | GetKind(); |
| 50 | |
| 51 | lldb::QueueKind |
| 52 | GetKind(); |
| 53 | |
Jason Molenda | 5e8dce4 | 2013-12-13 00:29:16 +0000 | [diff] [blame] | 54 | uint32_t |
| 55 | GetIndexID () const; |
| 56 | |
| 57 | uint32_t |
| 58 | GetNumThreads (); |
| 59 | |
| 60 | lldb::SBThread |
| 61 | GetThreadAtIndex (uint32_t); |
| 62 | |
| 63 | uint32_t |
Jason Molenda | 2fd8335 | 2014-02-05 05:44:54 +0000 | [diff] [blame] | 64 | GetNumPendingItems (); |
Jason Molenda | 5e8dce4 | 2013-12-13 00:29:16 +0000 | [diff] [blame] | 65 | |
| 66 | lldb::SBQueueItem |
Jason Molenda | 2fd8335 | 2014-02-05 05:44:54 +0000 | [diff] [blame] | 67 | GetPendingItemAtIndex (uint32_t); |
Jason Molenda | 5e8dce4 | 2013-12-13 00:29:16 +0000 | [diff] [blame] | 68 | |
Jason Molenda | 37e9b5a | 2014-03-09 21:17:08 +0000 | [diff] [blame] | 69 | uint32_t |
| 70 | GetNumRunningItems (); |
| 71 | |
Jason Molenda | 5e8dce4 | 2013-12-13 00:29:16 +0000 | [diff] [blame] | 72 | }; |
| 73 | |
| 74 | } // namespace lldb |
| 75 | |