Initial MSVC 2008 projects workspace
This commit is contained in:
19
libl2c_utils/l2c_lock.h
Normal file
19
libl2c_utils/l2c_lock.h
Normal file
@@ -0,0 +1,19 @@
|
||||
#pragma once
|
||||
#include "l2c_utils.h"
|
||||
|
||||
class L2C_UTILS_API CriticalSection
|
||||
{
|
||||
public:
|
||||
CriticalSection();
|
||||
~CriticalSection();
|
||||
|
||||
public:
|
||||
void Lock();
|
||||
void Unlock();
|
||||
bool TryLock( unsigned int wait_milliseconds = 0 );
|
||||
bool isLocked() const;
|
||||
|
||||
protected:
|
||||
CRITICAL_SECTION m_lock;
|
||||
bool m_locked;
|
||||
};
|
Reference in New Issue
Block a user