The Pedigree Project 0.1
Public Member Functions | Public Attributes | Private Member Functions | List of all members
PosixSubsystem::PosixThread Class Reference

#include <PosixSubsystem.h>

+ Collaboration diagram for PosixSubsystem::PosixThread:

Public Member Functions

PosixThreadKey * getThreadData (size_t key)
 
void removeThreadData (size_t key)
 
bool addThreadData (size_t key, PosixThreadKey *info)
 

Public Attributes

Thread * pThread
 
Completion 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 &)
 

Detailed Description

POSIX Thread information

Definition at line 618 of file PosixSubsystem.h.

Constructor & Destructor Documentation

◆ PosixThread()

PosixSubsystem::PosixThread::PosixThread ( )
inline

Definition at line 620 of file PosixSubsystem.h.

◆ ~PosixThread()

PosixSubsystem::PosixThread::~PosixThread ( )
inline

Definition at line 630 of file PosixSubsystem.h.

Member Function Documentation

◆ addThreadData()

bool PosixSubsystem::PosixThread::addThreadData ( size_t  key,
PosixThreadKey *  info 
)
inline

Adds thread-specific data given a PosixThreadKey strcuture and a key.

Returns
false if the key already exists.

Definition at line 662 of file PosixSubsystem.h.

References Tree< K, E >::insert(), and Tree< K, E >::lookup().

◆ getThreadData()

PosixThreadKey * PosixSubsystem::PosixThread::getThreadData ( size_t  key)
inline

Grabs thread-specific data given a key

Definition at line 646 of file PosixSubsystem.h.

References Tree< K, E >::lookup().

◆ removeThreadData()

void PosixSubsystem::PosixThread::removeThreadData ( size_t  key)
inline

Removes thread-specific data given a key (does not call the destructor, or delete the storage.)

Definition at line 654 of file PosixSubsystem.h.

References Tree< K, E >::remove().

Member Data Documentation

◆ canReclaim

bool PosixSubsystem::PosixThread::canReclaim

Definition at line 636 of file PosixSubsystem.h.

◆ isDetached

bool PosixSubsystem::PosixThread::isDetached

Definition at line 637 of file PosixSubsystem.h.

◆ isRunning

Completion PosixSubsystem::PosixThread::isRunning

Definition at line 633 of file PosixSubsystem.h.

◆ lastDataKey

size_t PosixSubsystem::PosixThread::lastDataKey

Last data key that was allocated (for the bitmap)

Definition at line 670 of file PosixSubsystem.h.

◆ m_ThreadData

Tree<size_t, PosixThreadKey*> PosixSubsystem::PosixThread::m_ThreadData

Links to POSIX thread keys (ie, thread-specific data)

Definition at line 642 of file PosixSubsystem.h.

Referenced by PosixSubsystem::~PosixSubsystem().

◆ m_ThreadKeys

ExtensibleBitmap PosixSubsystem::PosixThread::m_ThreadKeys

Definition at line 643 of file PosixSubsystem.h.

◆ nextDataKey

size_t PosixSubsystem::PosixThread::nextDataKey

Next data key available.

Definition at line 673 of file PosixSubsystem.h.

◆ pThread

Thread* PosixSubsystem::PosixThread::pThread

Definition at line 632 of file PosixSubsystem.h.

◆ returnValue

void* PosixSubsystem::PosixThread::returnValue

Definition at line 634 of file PosixSubsystem.h.


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