#include <WTL-PP.h>
|
| CSRWlock (const CSRWlock &) |
|
void | operator= (const CSRWlock &) |
|
| VOID (WINAPI *AcquireSRWLockExclusive)(PSRWLOCK SRWLock) |
|
| VOID (WINAPI *AcquireSRWLockShared)(PSRWLOCK SRWLock) |
|
| VOID (WINAPI *ReleaseSRWLockExclusive)(PSRWLOCK SRWLock) |
|
| VOID (WINAPI *ReleaseSRWLockShared)(PSRWLOCK SRWLock) |
|
|
template<typename func_t > |
static void | Bind (func_t &func, HMODULE dll, const char *name) |
|
Definition at line 254 of file WTL-PP.h.
Definition at line 256 of file WTL-PP.h.
257 #if _WIN32_WINNT < 0x600 258 auto dll = GetModuleHandle(_T(
"kernel32"));
259 Bind(AcquireSRWLockExclusive, dll,
"AcquireSRWLockExclusive");
260 Bind(AcquireSRWLockShared, dll,
"AcquireSRWLockShared");
261 Bind(ReleaseSRWLockExclusive, dll,
"ReleaseSRWLockExclusive");
262 Bind(ReleaseSRWLockShared, dll,
"ReleaseSRWLockShared");
static void Bind(func_t &func, HMODULE dll, const char *name)
template<typename func_t >
static void CSRWlock::Bind |
( |
func_t & |
func, |
|
|
HMODULE |
dll, |
|
|
const char * |
name |
|
) |
| |
|
inlinestaticprivate |
Definition at line 293 of file WTL-PP.h.
294 func =
reinterpret_cast<func_t
>(GetProcAddress( dll, name ) );
void CSRWlock::EnterExclusive |
( |
| ) |
|
|
inline |
void CSRWlock::EnterShared |
( |
| ) |
|
|
inline |
bool CSRWlock::HaveAPI |
( |
| ) |
|
|
inline |
Definition at line 266 of file WTL-PP.h.
267 #if _WIN32_WINNT < 0x600 268 return AcquireSRWLockExclusive != NULL;
void CSRWlock::LeaveExclusive |
( |
| ) |
|
|
inline |
void CSRWlock::LeaveShared |
( |
| ) |
|
|
inline |
void CSRWlock::operator= |
( |
const CSRWlock & |
| ) |
|
|
private |
CSRWlock::VOID |
( |
WINAPI * |
AcquireSRWLockExclusive | ) |
|
|
private |
CSRWlock::VOID |
( |
WINAPI * |
AcquireSRWLockShared | ) |
|
|
private |
CSRWlock::VOID |
( |
WINAPI * |
ReleaseSRWLockExclusive | ) |
|
|
private |
CSRWlock::VOID |
( |
WINAPI * |
ReleaseSRWLockShared | ) |
|
|
private |
SRWLOCK CSRWlock::theLock |
|
private |
The documentation for this class was generated from the following file: