#include <mux_win32.h>
Win32 Mutex Factory
Definition at line 19 of file mux_win32.h.
Mutex * Botan::Win32_Mutex_Factory::make |
( |
| ) |
|
|
virtual |
- Returns
- newly allocated mutex
Implements Botan::Mutex_Factory.
Definition at line 17 of file mux_win32.cpp.
References mutex.
19 class Win32_Mutex :
public Mutex
22 void lock() { EnterCriticalSection(&
mutex); }
23 void unlock() { LeaveCriticalSection(&
mutex); }
25 Win32_Mutex() { InitializeCriticalSection(&
mutex); }
26 ~Win32_Mutex() { DeleteCriticalSection(&
mutex); }
28 CRITICAL_SECTION
mutex;
31 return new Win32_Mutex();
The documentation for this class was generated from the following files: