Lines Matching refs:lock_
80 memset(&lock_, 0, sizeof(lock_));
85 InitializeCriticalSection(&lock_);
90 ASSERT_EQ(0, pthread_mutex_init(&lock_, NULL));
145 DeleteCriticalSection(&lock_);
147 ASSERT_EQ(0, pthread_mutex_lock(&lock_));
149 ASSERT_EQ(0, pthread_mutex_unlock(&lock_));
151 ASSERT_EQ(0, pthread_mutex_destroy(&lock_));
161 EnterCriticalSection(&lock_);
163 LeaveCriticalSection(&lock_);
166 ASSERT_EQ(0, pthread_mutex_lock(&lock_));
168 ASSERT_EQ(0, pthread_mutex_unlock(&lock_));
178 EnterCriticalSection(&lock_);
180 LeaveCriticalSection(&lock_);
185 LeaveCriticalSection(&lock_);
199 pthread_mutex_lock(&lock_);
201 pthread_mutex_unlock(&lock_);
206 pthread_mutex_unlock(&lock_);