mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Add a missing call to lock_wait
in test function
This was uncovered when I tried to run other code with ThreadSan, but it only found this. :(
This commit is contained in:
parent
32f919eee0
commit
c9fc487c43
|
@ -75,6 +75,7 @@ static void LockThread(void *pUser)
|
|||
TEST(Thread, Lock)
|
||||
{
|
||||
LOCK Lock = lock_create();
|
||||
lock_wait(Lock);
|
||||
void *pThread = thread_init(LockThread, &Lock);
|
||||
lock_unlock(Lock);
|
||||
thread_wait(pThread);
|
||||
|
|
Loading…
Reference in a new issue