Lines Matching defs:mutex
18 Mutex* mutex = OS::CreateMutex();
19 CHECK_EQ(0, mutex->Lock()); // acquire the lock with the right token
20 CHECK_EQ(0, mutex->Unlock()); // can unlock with the right token
21 delete mutex;
26 Mutex* mutex = OS::CreateMutex();
27 CHECK_EQ(0, mutex->Lock());
28 CHECK_EQ(0, mutex->Unlock());
29 delete mutex;
34 Mutex* mutex = OS::CreateMutex();
35 CHECK_EQ(0, mutex->Lock());
36 CHECK_EQ(0, mutex->Unlock());
37 CHECK_EQ(0, mutex->Lock());
38 CHECK_EQ(0, mutex->Unlock());
39 delete mutex;