Qore Programming Language Reference Manual 0.8.8

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes

All Classes Namespaces Functions Variables Groups Pages
QC_Sequence.dox.h
1 namespace Qore::Thread {
4
6 class Sequence {
7
8 public:
10
15 constructor();
16
17 public:
19
24 constructor(softint start);
25
26 public:
28
33 copy();
34
35 public:
37
47 int getCurrent();
48
49 public:
51
57 int next();
58 };
59 };
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::Sequence::constructor
constructor()
Creates a new Sequence object.
Qore::Thread::Sequence
The Sequence class implements a thread-safe increment-only object.
Definition: QC_Sequence.dox.h:6