The Pedigree Project
0.1
|
#include <PosixSubsystem.h>
Public Member Functions | |
PosixThreadKey * | getThreadData (size_t key) |
void | removeThreadData (size_t key) |
bool | addThreadData (size_t key, PosixThreadKey *info) |
Public Attributes | |
Thread * | pThread |
Mutex | isRunning |
void * | returnValue |
bool | canReclaim |
bool | isDetached |
Tree< size_t, PosixThreadKey * > | m_ThreadData |
ExtensibleBitmap | m_ThreadKeys |
size_t | lastDataKey |
Last data key that was allocated (for the bitmap) | |
size_t | nextDataKey |
Next data key available. | |
Private Member Functions | |
PosixThread (const PosixThread &) | |
const PosixThread & | operator= (const PosixThread &) |
POSIX Thread information
Definition at line 374 of file PosixSubsystem.h.
|
inline |
Adds thread-specific data given a PosixThreadKey strcuture and a key.
Definition at line 419 of file PosixSubsystem.h.
References Tree< K, E >::insert(), and Tree< K, E >::lookup().
|
inline |
Grabs thread-specific data given a key
Definition at line 401 of file PosixSubsystem.h.
References Tree< K, E >::lookup().
|
inline |
Removes thread-specific data given a key (does not call the destructor, or delete the storage.)
Definition at line 410 of file PosixSubsystem.h.
References Tree< K, E >::remove().
Tree<size_t, PosixThreadKey *> PosixSubsystem::PosixThread::m_ThreadData |
Links to POSIX thread keys (ie, thread-specific data)
Definition at line 397 of file PosixSubsystem.h.
Referenced by PosixSubsystem::~PosixSubsystem().