OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:fSemaphore
(Results
1 - 3
of
3
) sorted by null
/external/skia/src/core/
SkSemaphore.cpp
13
semaphore_t
fSemaphore
;
16
semaphore_create(mach_task_self(), &
fSemaphore
, SYNC_POLICY_LIFO, 0/*initial count*/);
18
~OSSemaphore() { semaphore_destroy(mach_task_self(),
fSemaphore
); }
20
void signal(int n) { while (n --> 0) { semaphore_signal(
fSemaphore
); } }
21
void wait() { semaphore_wait(
fSemaphore
); }
25
HANDLE
fSemaphore
;
28
fSemaphore
= CreateSemaphore(nullptr /*security attributes, optional*/,
33
~OSSemaphore() { CloseHandle(
fSemaphore
); }
36
ReleaseSemaphore(
fSemaphore
, n, nullptr/*returns previous count, optional*/);
38
void wait() { WaitForSingleObject(
fSemaphore
, INFINITE/*timeout in ms*/);
[
all
...]
/external/skia/include/private/
SkMutex.h
39
fSemaphore
.wait();
46
fSemaphore
.signal();
53
SkBaseSemaphore
fSemaphore
;
61
fSemaphore
= SK_MUTEX_SEMAPHORE_INIT;
64
~SkMutex () {
fSemaphore
.deleteSemaphore(); }
/external/skia/tools/kilobench/
kilobench.cpp
329
fSemaphore
.wait();
340
fSemaphore
.wait();
356
fSemaphore
.wait();
376
fSemaphore
.signal();
384
fSemaphore
.signal();
408
SkSemaphore
fSemaphore
;
Completed in 169 milliseconds