Listing 2: The CMonMutex class interface

// File : CMonMutex.h"

#ifndef  CMonMutex_H
#define  CMonMutex_H

#include <windows.h>
#include "MutexInterface.h"

class CMonMutex: public IMutex
{
public:
   CMonMutex();
   virtual ~CMonMutex();
   virtual void
   wait(unsigned short usTimeOut = INFINITE)
      throw (MutexException);
   virtual void release();

private:

protected:
   HANDLE m_hMutex; // handle to the
                    // win32 mutex
};

#endif
/* End of File */