Home
last modified time | relevance | path

Searched refs:MutexLockTestThread (Results 1 – 2 of 2) sorted by relevance

/external/sfntly/cpp/src/test/
Dlock_test.cc163 class MutexLockTestThread : public PlatformThread::Delegate { class
165 MutexLockTestThread(Lock* lock, int* value) : lock_(lock), value_(value) {} in MutexLockTestThread() function in sfntly::MutexLockTestThread
186 NO_COPY_AND_ASSIGN(MutexLockTestThread);
193 MutexLockTestThread thread(&lock, &value); in MutexTwoThreads()
198 MutexLockTestThread::DoStuff(&lock, &value); in MutexTwoThreads()
210 MutexLockTestThread thread1(&lock, &value); in MutexFourThreads()
211 MutexLockTestThread thread2(&lock, &value); in MutexFourThreads()
212 MutexLockTestThread thread3(&lock, &value); in MutexFourThreads()
221 MutexLockTestThread::DoStuff(&lock, &value); in MutexFourThreads()
/external/libchrome/base/synchronization/
Dlock_unittest.cc193 class MutexLockTestThread : public PlatformThread::Delegate { class
195 MutexLockTestThread(Lock* lock, int* value) : lock_(lock), value_(value) {} in MutexLockTestThread() function in base::MutexLockTestThread
214 DISALLOW_COPY_AND_ASSIGN(MutexLockTestThread);
221 MutexLockTestThread thread(&lock, &value); in TEST()
226 MutexLockTestThread::DoStuff(&lock, &value); in TEST()
237 MutexLockTestThread thread1(&lock, &value); in TEST()
238 MutexLockTestThread thread2(&lock, &value); in TEST()
239 MutexLockTestThread thread3(&lock, &value); in TEST()
248 MutexLockTestThread::DoStuff(&lock, &value); in TEST()