equal
deleted
inserted
replaced
134 WinLock::WinLock() { |
134 WinLock::WinLock() { |
135 #ifdef WIN32 |
135 #ifdef WIN32 |
136 CRITICAL_SECTION *lock = new CRITICAL_SECTION; |
136 CRITICAL_SECTION *lock = new CRITICAL_SECTION; |
137 InitializeCriticalSection(lock); |
137 InitializeCriticalSection(lock); |
138 _repr = lock; |
138 _repr = lock; |
|
139 #else |
|
140 _repr = 0; //Just to avoid 'unused variable' warning with clang |
139 #endif |
141 #endif |
140 } |
142 } |
141 |
143 |
142 WinLock::~WinLock() { |
144 WinLock::~WinLock() { |
143 #ifdef WIN32 |
145 #ifdef WIN32 |