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