home *** CD-ROM | disk | FTP | other *** search
- // =================================================================
- // Mutex.cpp
- // =================================================================
- // Harold Kasperink / John Dekker
- // Dr. Dobb's Journal 1997
- // =================================================================
- // The function bodies in this files are empty because we cannot
- // give the thread class implementation for copyright reasons and
- // because it is beyond the scope of our article.
- // What you could do is write here your own Pthread wrapper
- // implememtation.
- // =================================================================
- #include "mutex.h"
-
- ////////////////////////////////////////////////////////////////////
- // CMutex::CMutex
- ////////////////////////////////////////////////////////////////////
- // Constructor for the Mutex
- ////////////////////////////////////////////////////////////////////
- CMutex::CMutex()
- {
- }
-
- ////////////////////////////////////////////////////////////////////
- // CMutex::CMutex
- ////////////////////////////////////////////////////////////////////
- // Destructor for the Mutex
- ////////////////////////////////////////////////////////////////////
- CMutex::~CMutex()
- {
- }
-
- ////////////////////////////////////////////////////////////////////
- // CMutex::Lock
- ////////////////////////////////////////////////////////////////////
- // Lock the mutex object
- ////////////////////////////////////////////////////////////////////
- void CMutex::Lock()
- {
- }
-
- ////////////////////////////////////////////////////////////////////
- // CMutex::TryLock
- ////////////////////////////////////////////////////////////////////
- // return 0 if mutex already locked, 1 if successfully locked
- ////////////////////////////////////////////////////////////////////
- // Try to lock the mutex object, but do not wait until the lock is
- // released
- ////////////////////////////////////////////////////////////////////
- int CMutex::TryLock()
- {
- return 0;
- };
-
- ////////////////////////////////////////////////////////////////////
- // CMutex::Unlock
- ////////////////////////////////////////////////////////////////////
- // Unlock the mutex object
- ////////////////////////////////////////////////////////////////////
- void CMutex::Unlock()
- {
- }
-
-
-
-