Arachne  0.1
Public Member Functions | Public Attributes | List of all members
Arachne::ThreadId Struct Reference

#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

ThreadContextcontext
 The storage where this thread's state is held.
 
uint32_t generation
 

Detailed Description

This structure is used to identify an Arachne thread to methods of the Arachne API.

Constructor & Destructor Documentation

Arachne::ThreadId::ThreadId ( ThreadContext context,
uint32_t  generation 
)
inline

Construct a ThreadId.

Parameters
contextThe location where the thread's metadata currently lives.
generationUsed to differentiate this thread from others that lived at this context in the past and future.

Member Function Documentation

bool Arachne::ThreadId::operator== ( const ThreadId other) const
inline

The equality operator is generally used for comparing against Arachne::NullThread.

Member Data Documentation

uint32_t Arachne::ThreadId::generation

Differentiates this Arachne thread from others that use the same context.


The documentation for this struct was generated from the following file: