DSMutex



Member Functions

DSMutex

	public:

DSMutex();

Create a Mutex.


lock

	public:

void lock();

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();

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();

Destroy a Mutex.


Generated with HeaderDoc - © 2000 Apple Computer, Inc. — (Last Updated 9/29/2003)