Arachne
0.1
|
#include <Arachne.h>
Public Member Functions | |
ThreadId (ThreadContext *context, uint32_t generation) | |
bool | operator== (const ThreadId &other) const |
bool | operator!= (const ThreadId &other) const |
Negation of the function above. | |
Public Attributes | |
ThreadContext * | context |
The storage where this thread's state is held. | |
uint32_t | generation |
This structure is used to identify an Arachne thread to methods of the Arachne API.
|
inline |
Construct a ThreadId.
context | The location where the thread's metadata currently lives. |
generation | Used to differentiate this thread from others that lived at this context in the past and future. |
|
inline |
The equality operator is generally used for comparing against Arachne::NullThread.
uint32_t Arachne::ThreadId::generation |
Differentiates this Arachne thread from others that use the same context.