Nevcairiel

Untitled

Oct 15th, 2022
952
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.27 KB | None | 0 0
  1. typedef SRWLOCK pl_static_mutex;
  2. #define PL_STATIC_MUTEX_INITIALIZER SRWLOCK_INIT;
  3. int pl_static_mutex_lock(pl_static_mutex *mutex) { AcquireSRWLockExclusive(mutex); return 0; }
  4. int pl_static_mutex_unlock(pl_static_mutex *mutex) { ReleaseSRWLockExclusive(mutex); return 0; }
Advertisement
Add Comment
Please, Sign In to add comment