Qore Programming Language Reference Manual  1.0.8
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 }
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.
main Qore-language namespace
Definition: Pseudo_QC_All.dox.h:3
constructor()
Creates a new Sequence object.
The Sequence class implements a thread-safe increment-only object.
Definition: QC_Sequence.dox.h:8