Skip to content
Snippets Groups Projects
Commit 838501b0 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Fix rwlock init

parent a40e1e63
No related branches found
No related tags found
No related merge requests found
Pipeline #5291 canceled
......@@ -11,10 +11,10 @@ rwlock_init(rwlock_t *lock)
{
InitializeCriticalSection(&lock->lk);
InitializeCriticalSection(&lock->wlk);
readers = 0;
writers = 0;
writers_waiting = 0;
writer = (DWORD)-1;
lock->readers = 0;
lock->writers = 0;
lock->writers_waiting = 0;
lock->writer = (DWORD)-1;
}
BOOL
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment