Home
last modified time | relevance | path

Searched refs:fSemaphore (Results 1 – 3 of 3) sorted by relevance

/external/skia/src/core/
DSkSemaphore.cpp13 semaphore_t fSemaphore; member
16 semaphore_create(mach_task_self(), &fSemaphore, SYNC_POLICY_LIFO, 0/*initial count*/); in OSSemaphore()
18 ~OSSemaphore() { semaphore_destroy(mach_task_self(), fSemaphore); } in ~OSSemaphore()
20 void signal(int n) { while (n --> 0) { semaphore_signal(fSemaphore); } } in signal()
21 void wait() { semaphore_wait(fSemaphore); } in wait()
25 HANDLE fSemaphore; member
28 fSemaphore = CreateSemaphore(nullptr /*security attributes, optional*/, in OSSemaphore()
33 ~OSSemaphore() { CloseHandle(fSemaphore); } in ~OSSemaphore()
36 ReleaseSemaphore(fSemaphore, n, nullptr/*returns previous count, optional*/); in signal()
38 void wait() { WaitForSingleObject(fSemaphore, INFINITE/*timeout in ms*/); } in wait()
[all …]
/external/skia/include/private/
DSkMutex.h39 fSemaphore.wait(); in acquire()
46 fSemaphore.signal(); in release()
53 SkBaseSemaphore fSemaphore; member
61 fSemaphore = SK_MUTEX_SEMAPHORE_INIT; in SkMutex()
64 ~SkMutex () { fSemaphore.deleteSemaphore(); } in ~SkMutex()
/external/skia/tools/kilobench/
Dkilobench.cpp329 fSemaphore.wait(); in timingLoop()
340 fSemaphore.wait(); in timingLoop()
356 fSemaphore.wait(); in timingLoop()
376 fSemaphore.signal(); in setDone()
384 fSemaphore.signal(); in pushSync()
408 SkSemaphore fSemaphore; member