Temp commit. Cloth

This commit is contained in:
korenkonder
2022-06-19 05:32:43 +03:00
parent 82da8a484d
commit 8a0f0d4aa3
165 changed files with 14548 additions and 14988 deletions
+20
View File
@@ -0,0 +1,20 @@
/*
by korenkonder
GitHub/GitLab: korenkonder
*/
#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;
}