Qore Programming Language Reference Manual  0.8.9
 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 };
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.
constructor()
Creates a new Sequence object.
The Sequence class implements a thread-safe increment-only object.
Definition: QC_Sequence.dox.h:6