17 #include "copyright.h" 38 void Mapcar (VoidFunctionPtr func);
41 void *
get(
unsigned int index);
unsigned int size()
SynchList::size Return the size of the current list.
Definition: synchlist.cc:128
void GetTheLock()
SynchList::GetTheLock Execute an acquire to the lock, then the kernel could use the list for thread m...
Definition: synchlist.cc:142
List * getList()
SynchList::getList Return the list, for thread management utilisation.
Definition: synchlist.cc:162
~SynchList()
SynchList::~SynchList De-allocate the data structures created for synchronizing a list...
Definition: synchlist.cc:39
Routines to manage a singly-linked list of "things". Defining TRUE and FALSE is usually a Bad Idea...
void Append(void *item)
SynchList::Append Append an "item" to the end of the list. Wake up anyone waiting for an element to b...
Definition: synchlist.cc:56
bool IsEmpty()
SynchList::IsEmpty Know if the synchlist is empty or not.
Definition: synchlist.cc:169
SynchList()
SynchList::SynchList Allocate and initialize the data structures needed for a synchronized list...
Definition: synchlist.cc:27
void Mapcar(VoidFunctionPtr func)
SynchList::Mapcar Apply function to every item on the list. Obey mutual exclusion constraints...
Definition: synchlist.cc:95
void FreeTheLock()
SynchList::FreeTheLock Execute a release to the lock, then the kernel stop use the list for thread ma...
Definition: synchlist.cc:152
Data structures for synchronizing threads.
void * Remove()
SynchList::Remove Remove an "item" from the beginning of the list. Wait if the list is empty...
Definition: synchlist.cc:73
The following class defines a "synchronized list" – a list for which: these constraints hold: ...
Definition: synchlist.h:27