tac0S
Template Affectional Command Operating System
|
Public Member Functions | |
UserThread (void *, void *arg, unsigned int tid, int exitPC) | |
UserThread::UserThread. More... | |
~UserThread () | |
UserThread::~UserThread Delete the UserThread class. | |
void | Run () |
UserThread::Run Do the fork and place the thread into the ready list. | |
unsigned int | getId () |
UserThread::getId() get The Thread Id. More... | |
void | exit (void *returnAdress) |
UserThread::exit Finis the thread. Put information on the current UserThreadData if it had a parent. More... | |
void * | WaitForChildExited (int CID) |
UserThread::WaitForChildExited Current thraid will wait that his child end. More... | |
void | WaitForAllChildExited () |
UserThread::WaitForAllChildExited Wait for all the child exited. | |
int | StopChild (unsigned int CID) |
int | WakeUpChild (unsigned int CID) |
int | makeChildSurvive (unsigned int CID) |
UserThread::makeChildSurvive Pass a child in suvivor mode. More... | |
void | makeAllChildSurvive () |
UserThread::makeAllChildSurvive Put all the child of the current thread in survivor mode. | |
List * | getChildList () |
UserThread::getChildList Get the child list and put a lock on it when done, don't forget to use DoneWithTheChildList();. More... | |
void | DoneWithTheChildList () |
UserThread::DoneWithTheChildList trash the lock Locked from getChildList. | |
Thread * | getThread () |
UserThread::getThread Get the Thread of the UserThread. More... | |
bool | removeChild (void *childToRemove) |
UserThread::removeChild Remove the child of the current child list. More... | |
void | addChildren (UserThread *UTC) |
UserThread::addChildren Add a thread to the child list. More... | |
void | setParrent (UserThread *UTP) |
UserThread::setParrent Add a parrent to the current thread. More... | |
UserThread * | getParrent () |
UserThread::getParrent Get the UserThread * parrent. More... | |
void * | getUserThreadDataChild (unsigned int CID) |
UserThread::getUserThreadDataChild Get the Meta Data structure of the child with TID CID. More... | |
void * | getMeta () |
UserThread::getMeta return the adress of the metaStructure. More... | |
void | setMeta (void *) |
UserThread::setMeta Set a metaData for the current thread. More... | |
bool | isSurvivor () |
UserThread::isSurvivor Test if the current thread is in mode survivor. More... | |
void | setSurvivor (bool boolean) |
UserThread::setSurvivor Enable or disable the survivor mode. More... | |
int * | getTableOfOpenfile () |
UserThread::UserThread | ( | void * | f, |
void * | arg, | ||
unsigned int | tid, | ||
int | exitPC | ||
) |
f | The function where the thread will begin |
arg | The adress of the object passed in parameter |
tid | The Thread Identifiant |
void UserThread::addChildren | ( | UserThread * | UTC | ) |
UserThread::addChildren Add a thread to the child list.
UTC | UserThread * |
void UserThread::exit | ( | void * | returnAdress | ) |
UserThread::exit Finis the thread. Put information on the current UserThreadData if it had a parent.
returnAdress | void * : The adress of the object you want to return |
List * UserThread::getChildList | ( | ) |
UserThread::getChildList Get the child list and put a lock on it when done, don't forget to use DoneWithTheChildList();.
unsigned int UserThread::getId | ( | ) |
UserThread::getId() get The Thread Id.
void * UserThread::getMeta | ( | ) |
UserThread::getMeta return the adress of the metaStructure.
UserThread * UserThread::getParrent | ( | ) |
UserThread::getParrent Get the UserThread * parrent.
Thread * UserThread::getThread | ( | ) |
UserThread::getThread Get the Thread of the UserThread.
void * UserThread::getUserThreadDataChild | ( | unsigned int | CID | ) |
UserThread::getUserThreadDataChild Get the Meta Data structure of the child with TID CID.
CID |
bool UserThread::isSurvivor | ( | ) |
UserThread::isSurvivor Test if the current thread is in mode survivor.
int UserThread::makeChildSurvive | ( | unsigned int | CID | ) |
UserThread::makeChildSurvive Pass a child in suvivor mode.
CID | Child id |
bool UserThread::removeChild | ( | void * | childToRemove | ) |
UserThread::removeChild Remove the child of the current child list.
childToRemove |
void UserThread::setMeta | ( | void * | meta | ) |
UserThread::setMeta Set a metaData for the current thread.
meta |
void UserThread::setParrent | ( | UserThread * | UTP | ) |
UserThread::setParrent Add a parrent to the current thread.
UTP | UserThread * Parrent |
void UserThread::setSurvivor | ( | bool | boolean | ) |
UserThread::setSurvivor Enable or disable the survivor mode.
boolean | True to enabe, false to disable |
void * UserThread::WaitForChildExited | ( | int | CID | ) |
UserThread::WaitForChildExited Current thraid will wait that his child end.
CID | The child TID |