Functions



DSMutex


public:

DSMutex (void);
Discussion

Create a Mutex.


lock


public:

void lock (void);
Discussion

Lock the mutex. lock() will not return until it successfully obtains a lock, however long that takes. That means, once you've acquired a lock, remember to unlock it, otherwise everybody else will wait forever (deadlock) and we don't want that, do we?


unlock


public:

void unlock (void);
Discussion

Release a previously acquired lock. Do not unlock a lock you haven't locked, it hurts. Remember to do this to ensure that everybody else gets a turn. As soon as you unlock it, anybody waiting on a lock is allowed to proceed.


~TSMutex


public:

~DSMutex (void);
Discussion

Destroy a Mutex.

(Last Updated 9/24/2004)