Qore Programming Language Reference Manual
0.9.4.3
QC_Sequence.dox.h
1
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::getCurrent
int getCurrent()
Returns the current value of the sequence.
Qore::Thread::Sequence::constructor
constructor()
Creates a new Sequence object.
Qore::Thread::Sequence::copy
copy()
Creates a new Sequence object, not based on the original.
Qore
main Qore-language namespace
Definition:
Pseudo_QC_All.dox.h:3
Qore::Thread::Sequence::next
int next()
Atomically increments the sequence value and returns the last value.