mirror of
https://github.com/korenkonder/ReDIVA.git
synced 2026-10-07 14:18:30 +03:00
Temp commit. Sound
This commit is contained in:
@@ -4,17 +4,3 @@
|
||||
*/
|
||||
|
||||
#include "lock.hpp"
|
||||
|
||||
inline void lock_init(lock* l) {
|
||||
l->init = InitializeCriticalSectionAndSpinCount(&l->cs, 0);
|
||||
}
|
||||
|
||||
inline bool lock_check_init(lock* l) {
|
||||
return l->init;
|
||||
}
|
||||
|
||||
inline void lock_free(lock* l) {
|
||||
if (l->init)
|
||||
DeleteCriticalSection(&l->cs);
|
||||
l->init = FALSE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user