| Qore Programming Language Reference Manual 2.2.0

Loading...
Searching...
No Matches
QC_Sequence.dox.h
1
2 namespace Qore {
4 namespace Thread {
6
8 class Sequence {
9
10 public:
12
17 constructor();
18
19 public:
21
26 constructor(softint start);
27
28 public:
30
35 copy();
36
37 public:
39
49 int getCurrent();
50
51 public:
53
59 int next();
60};
61}
62}
Qore::Thread::Sequence
The Sequence class implements a thread-safe increment-only object.
Definition QC_Sequence.dox.h:8
Qore::Thread::Sequence::constructor
constructor()
Creates a new Sequence object.
Qore::Thread::Sequence::constructor
constructor(softint start)
Creates a new Sequence object with a starting value.
Qore::Thread::Sequence::next
int next()
Atomically increments the sequence value and returns the last value.
Qore::Thread::Sequence::getCurrent
int getCurrent()
Returns the current value of the sequence.
Qore::Thread::Sequence::copy
copy()
Creates a new Sequence object, not based on the original.
Qore::Thread
Thread namespace.
Definition QC_AbstractSmartLock.dox.h:4
Qore
main Qore-language namespace
Definition Pseudo_QC_All.dox.h:3