Qore Programming Language Reference Manual  0.8.7
 All Classes Namespaces Functions Variables Groups Pages
QC_Counter.dox.h
1 
2 namespace Qore::Thread {
4 
11 class Counter {
12 
13 public:
15 
22  constructor(softint c = 0);
23 
24 public:
26 
31  copy();
32 
33 public:
35 
44 nothing dec();
45 
46 public:
48 
57  destructor();
58 
59 public:
61 
71 int getCount();
72 
73 public:
75 
85 int getWaiting();
86 
87 public:
89 
94 nothing inc();
95 
96 public:
98 
105 nothing waitForZero();
106 
107 public:
109 
121 int waitForZero(timeout timeout_ms);
122 };
123 };