tac0S
Template Affectional Command Operating System
Public Member Functions | List of all members
UserThreadData Class Reference

Public Member Functions

 UserThreadData (unsigned int ID, void *UT)
 UserThreadData::UserThreadData Constructor for UserThreadData. More...
 
 ~UserThreadData ()
 UserThreadData::~UserThreadData Destructor for UserThreadData.
 
void setReturn (void *ret)
 UserThreadData::setReturn Set a return adress for the thread. More...
 
void setEnd ()
 UserThreadData::setEnd Indicate that the thread is over.
 
void P ()
 UserThreadData::P Take a token.
 
void V ()
 UserThreadData::V put a token.
 
bool isEnded ()
 UserThreadData::isEnded Boolean function information. More...
 
unsigned int getID ()
 UserThreadData::getID get the thread ID. More...
 
void * getReturnValue ()
 UserThreadData::getReturnValue get the adress of the returned object of the thread. More...
 
void * getUserThread ()
 UserThreadData::getUserThread() Get the userThread pointer. More...
 

Constructor & Destructor Documentation

UserThreadData::UserThreadData ( unsigned int  tid,
void *  UT 
)

UserThreadData::UserThreadData Constructor for UserThreadData.

Parameters
tidUnsigned int id of the thread
UTAdress of the UserThread

Member Function Documentation

unsigned int UserThreadData::getID ( )

UserThreadData::getID get the thread ID.

Returns
unsigned int TID
void * UserThreadData::getReturnValue ( )

UserThreadData::getReturnValue get the adress of the returned object of the thread.

Returns
void *
void * UserThreadData::getUserThread ( )

UserThreadData::getUserThread() Get the userThread pointer.

Returns
void *
bool UserThreadData::isEnded ( )

UserThreadData::isEnded Boolean function information.

Returns
true if the thread is over, false otherwise
void UserThreadData::setReturn ( void *  ret)

UserThreadData::setReturn Set a return adress for the thread.

Parameters
ret

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