Home
last modified time | relevance | path

Searched defs:OSSemaphore (Results 1 – 2 of 2) sorted by relevance

/external/skia/src/core/
DSkSemaphore.cpp14 struct SkSemaphore::OSSemaphore { struct in SkSemaphore
17 OSSemaphore() { fSemaphore = dispatch_semaphore_create(0/*initial count*/); } in OSSemaphore() function
24 struct SkSemaphore::OSSemaphore {
27 OSSemaphore() { in OSSemaphore() function
44 struct SkSemaphore::OSSemaphore {
45 sem_t fSemaphore;
47 OSSemaphore() { sem_init(&fSemaphore, 0/*cross process?*/, 0/*initial count*/); } in OSSemaphore() function
48 ~OSSemaphore() { sem_destroy(&fSemaphore); } in ~OSSemaphore()
50 void signal(int n) { while (n --> 0) { sem_post(&fSemaphore); } } in signal()
51 void wait() { in wait()
/external/skqp/src/core/
DSkSemaphore.cpp24 struct SkBaseSemaphore::OSSemaphore { struct in SkBaseSemaphore
27 OSSemaphore() { in OSSemaphore() function
44 struct SkBaseSemaphore::OSSemaphore {
47 OSSemaphore() { in OSSemaphore() function
64 struct SkBaseSemaphore::OSSemaphore {
65 sem_t fSemaphore;
67 OSSemaphore() { sem_init(&fSemaphore, 0/*cross process?*/, 0/*initial count*/); } in OSSemaphore() argument
68 ~OSSemaphore() { sem_destroy(&fSemaphore); } in ~OSSemaphore()
70 void signal(int n) { while (n --> 0) { sem_post(&fSemaphore); } } in signal()
71 void wait() { in wait()