Loading...
Searching...
No Matches
QC_Sequence.dox.h
namespace Qore {
namespace Thread {
class Sequence {
public:
constructor();
public:
constructor(softint start);
public:
copy();
public:
int getCurrent();
public:
int next();
};
}
}
Qore::Thread::Sequence
The Sequence class implements a thread-safe increment-only object.
Definition: QC_Sequence.dox.h:8
Qore::Thread::Sequence::constructor
constructor()
Creates a new Sequence object.
Qore::Thread::Sequence::constructor
constructor(softint start)
Creates a new Sequence object with a starting value.
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
main Qore-language namespace
Definition: Pseudo_QC_All.dox.h:3