uLib  User mode C/C++ extended API library for Win32 programmers.
TMutex Class Reference

#include <uLib/SyncObj.h>

Inheritance diagram for TMutex:
TSyncObj

Detailed Description

TMutex encapsulates an IPC Mutex object.

Definition at line 136 of file SyncObj.h.

Public Functions

 TMutex (LPSECURITY_ATTRIBUTES SecAttr, bool Own, CSTR Name=NULL)
 
 TMutex (DWORD Access, bool Inherit, CSTR Name)
 
 ~TMutex ()
 
bool Release ()
 
- Public Functions inherited from TSyncObj
 TSyncObj ()
 
 TSyncObj (const HANDLE &Src)
 
 ~TSyncObj ()
 
bool Close ()
 
bool Wait (DWORD msWait)
 
bool WaitEx (DWORD msWait, bool Alertable)
 
bool SignalAndWait (HANDLE hWaitFor, DWORD msWait, bool Alertable)
 
HANDLE RegisterWait (WAITORTIMERCALLBACK Callback, PVOID Context, DWORD msWait, DWORD Flags)
 
bool UnregisterWait (HANDLE hWait)
 
 operator HANDLE ()
 
HANDLE GetHandle ()
 
bool Initialized ()
 
HANDLE Duplicate (HANDLE TargetProc, bool Inherit, ACCESS_MASK Access=0, DWORD Opt=DUPLICATE_SAME_ACCESS)
 

Additional Inherited Members

- Protected Attributes inherited from TSyncObj
HANDLE _hSync
 

Constructor & Destructor Documentation

◆ TMutex() [1/2]

TMutex::TMutex ( LPSECURITY_ATTRIBUTES  SecAttr,
bool  Own,
CSTR  Name = NULL 
)

CreateMutex(..)

Definition at line 253 of file SyncObj.cpp.

◆ TMutex() [2/2]

TMutex::TMutex ( DWORD  Access,
bool  Inherit,
CSTR  Name 
)

OpenMutex(..)

Definition at line 259 of file SyncObj.cpp.

◆ ~TMutex()

TMutex::~TMutex ( )

Definition at line 265 of file SyncObj.cpp.

Member Function Documentation

◆ Release()

bool TMutex::Release ( )

ReleaseMutex(..)

Definition at line 270 of file SyncObj.cpp.


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