Home
last modified time | relevance | path

Searched refs:sema (Results 1 - 7 of 7) sorted by relevance

/third_party/mesa3d/src/gallium/auxiliary/os/
H A Dos_thread.h78 pipe_semaphore_init(pipe_semaphore *sema, int init_val) in pipe_semaphore_init() argument
80 (void) mtx_init(&sema->mutex, mtx_plain); in pipe_semaphore_init()
81 cnd_init(&sema->cond); in pipe_semaphore_init()
82 sema->counter = init_val; in pipe_semaphore_init()
86 pipe_semaphore_destroy(pipe_semaphore *sema) in pipe_semaphore_destroy() argument
88 mtx_destroy(&sema->mutex); in pipe_semaphore_destroy()
89 cnd_destroy(&sema->cond); in pipe_semaphore_destroy()
94 pipe_semaphore_signal(pipe_semaphore *sema) in pipe_semaphore_signal() argument
96 mtx_lock(&sema->mutex); in pipe_semaphore_signal()
97 sema in pipe_semaphore_signal()
104 pipe_semaphore_wait(pipe_semaphore *sema) pipe_semaphore_wait() argument
[all...]
/third_party/pulseaudio/src/pulsecore/
H A Dsemaphore-win32.c32 HANDLE sema; member
40 s->sema = CreateSemaphore(NULL, value, 32767, NULL); in pa_semaphore_new()
41 pa_assert(s->sema != NULL); in pa_semaphore_new()
48 CloseHandle(s->sema); in pa_semaphore_free()
54 ReleaseSemaphore(s->sema, 1, NULL); in pa_semaphore_post()
59 WaitForSingleObject(s->sema, INFINITE); in pa_semaphore_wait()
/third_party/skia/src/gpu/gl/
H A DGrGLSemaphore.h26 auto sema = std::unique_ptr<GrGLSemaphore>( in MakeWrapped() local
28 sema->setSync(sync); in MakeWrapped()
29 return sema; in MakeWrapped()
/third_party/lwip/test/unit/arch/
H A Dsys_arch.h36 #define sys_sem_valid(sema) ((sema) != NULL)
/third_party/python/Lib/test/
H A Dtest_threading.py57 def __init__(self, name, testcase, sema, mutex, nrunning):
60 self.sema = sema
70 with self.sema:
168 sema = threading.BoundedSemaphore(value=3)
175 t = TestThread("<thread %d>"%i, self, sema, mutex, numrunning)
/third_party/skia/src/gpu/
H A DGrDirectContext.cpp431 std::unique_ptr<GrSemaphore> sema = fResourceProvider->wrapBackendSemaphore( in wait() local
435 if (sema) { in wait()
436 fGpu->waitSemaphore(sema.get()); in wait()
/third_party/skia/src/image/
H A DSkImage_Gpu.cpp676 std::unique_ptr<GrSemaphore> sema = gpu->prepareTextureForCrossContextUsage(texture.get()); in MakeCrossContextFromPixmap() local
680 std::move(sema), skCT, in MakeCrossContextFromPixmap()

Completed in 8 milliseconds