blob: 52724032a876bc20a6adecdedd68c2f00c4ca7af [file] [log] [blame]
Jason Molenda5e8dce42013-12-13 00:29:16 +00001//===-- 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
10namespace lldb {
11
12class SBQueue
13{
14public:
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 Molendaaac16e02014-03-13 02:54:54 +000030 %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 Molenda5e8dce42013-12-13 00:29:16 +000038 lldb::queue_id_t
39 GetQueueID () const;
40
41 const char *
42 GetName () const;
43
Jason Molendaaac16e02014-03-13 02:54:54 +000044 %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 Molenda5e8dce42013-12-13 00:29:16 +000054 uint32_t
55 GetIndexID () const;
56
57 uint32_t
58 GetNumThreads ();
59
60 lldb::SBThread
61 GetThreadAtIndex (uint32_t);
62
63 uint32_t
Jason Molenda2fd83352014-02-05 05:44:54 +000064 GetNumPendingItems ();
Jason Molenda5e8dce42013-12-13 00:29:16 +000065
66 lldb::SBQueueItem
Jason Molenda2fd83352014-02-05 05:44:54 +000067 GetPendingItemAtIndex (uint32_t);
Jason Molenda5e8dce42013-12-13 00:29:16 +000068
Jason Molenda37e9b5a2014-03-09 21:17:08 +000069 uint32_t
70 GetNumRunningItems ();
71
Jason Molenda5e8dce42013-12-13 00:29:16 +000072};
73
74} // namespace lldb
75