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

Public Member Functions

 Lock (const char *debugName)
 Dummy functions – so we can compile our later assignments Note – without a correct implementation of Condition::Wait(), the test case in the network assignment won't work! More...
 
 ~Lock ()
 Lock::~Lock Destructor of the Lock class.
 
const char * getName ()
 
void Acquire ()
 Lock::Acquire the lock If it's allready locked, put in a "waiting list" and sleep, FIFO order.
 
void Release ()
 Lock::Release Release the lock.
 
bool isHeldByCurrentThread ()
 

Constructor & Destructor Documentation

Lock::Lock ( const char *  debugName)

Dummy functions – so we can compile our later assignments Note – without a correct implementation of Condition::Wait(), the test case in the network assignment won't work!

Lock::Lock Constructeur of the Lock clss

Parameters
debugNameString name for debug

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