Home
last modified time | relevance | path

Searched refs:semaphore (Results 1 – 25 of 225) sorted by relevance

123456789

/external/valgrind/drd/
Ddrd_semaphore.c97 const Addr semaphore) in drd_semaphore_initialize() argument
99 tl_assert(semaphore != 0); in drd_semaphore_initialize()
100 tl_assert(p->a1 == semaphore); in drd_semaphore_initialize()
143 drd_semaphore_get_or_allocate(const Addr semaphore) in drd_semaphore_get_or_allocate() argument
147 tl_assert(offsetof(DrdClientobj, semaphore) == 0); in drd_semaphore_get_or_allocate()
148 p = &(DRD_(clientobj_get)(semaphore, ClientSemaphore)->semaphore); in drd_semaphore_get_or_allocate()
151 tl_assert(offsetof(DrdClientobj, semaphore) == 0); in drd_semaphore_get_or_allocate()
152 p = &(DRD_(clientobj_add)(semaphore, ClientSemaphore)->semaphore); in drd_semaphore_get_or_allocate()
153 drd_semaphore_initialize(p, semaphore); in drd_semaphore_get_or_allocate()
162 static struct semaphore_info* semaphore_get(const Addr semaphore) in semaphore_get() argument
[all …]
Ddrd_semaphore.h40 struct semaphore_info* DRD_(semaphore_init)(const Addr semaphore,
43 void DRD_(semaphore_destroy)(const Addr semaphore);
44 struct semaphore_info* DRD_(semaphore_open)(const Addr semaphore,
47 void DRD_(semaphore_close)(const Addr semaphore);
48 void DRD_(semaphore_pre_wait)(const Addr semaphore);
49 void DRD_(semaphore_post_wait)(const DrdThreadId tid, const Addr semaphore,
51 void DRD_(semaphore_pre_post)(const DrdThreadId tid, const Addr semaphore);
52 void DRD_(semaphore_post_post)(const DrdThreadId tid, const Addr semaphore,
/external/deqp/framework/delibs/dethread/unix/
DdeNamedSemaphoreUnix.c36 sem_t* semaphore; member
59 sem->semaphore = sem_open(name, O_CREAT|O_EXCL, mode, initialValue); in deSemaphore_create()
61 if (sem->semaphore == SEM_FAILED) in deSemaphore_create()
70 void deSemaphore_destroy (deSemaphore semaphore) in deSemaphore_destroy() argument
72 NamedSemaphore* sem = (NamedSemaphore*)semaphore; in deSemaphore_destroy()
78 res = sem_close(sem->semaphore); in deSemaphore_destroy()
86 void deSemaphore_increment (deSemaphore semaphore) in deSemaphore_increment() argument
88 sem_t* sem = ((NamedSemaphore*)semaphore)->semaphore; in deSemaphore_increment()
94 void deSemaphore_decrement (deSemaphore semaphore) in deSemaphore_decrement() argument
96 sem_t* sem = ((NamedSemaphore*)semaphore)->semaphore; in deSemaphore_decrement()
[all …]
DdeSemaphoreUnix.c53 void deSemaphore_destroy (deSemaphore semaphore) in deSemaphore_destroy() argument
55 sem_t* sem = (sem_t*)semaphore; in deSemaphore_destroy()
61 void deSemaphore_increment (deSemaphore semaphore) in deSemaphore_increment() argument
63 sem_t* sem = (sem_t*)semaphore; in deSemaphore_increment()
69 void deSemaphore_decrement (deSemaphore semaphore) in deSemaphore_decrement() argument
71 sem_t* sem = (sem_t*)semaphore; in deSemaphore_decrement()
77 deBool deSemaphore_tryDecrement (deSemaphore semaphore) in deSemaphore_tryDecrement() argument
79 sem_t* sem = (sem_t*)semaphore; in deSemaphore_tryDecrement()
/external/skia/src/gpu/ops/
DGrSemaphoreOp.cpp17 static std::unique_ptr<GrSignalSemaphoreOp> Make(sk_sp<GrSemaphore> semaphore, in Make() argument
20 return std::unique_ptr<GrSignalSemaphoreOp>(new GrSignalSemaphoreOp(std::move(semaphore), in Make()
28 explicit GrSignalSemaphoreOp(sk_sp<GrSemaphore> semaphore, GrRenderTargetProxy* proxy, in GrSignalSemaphoreOp() argument
30 : INHERITED(ClassID(), std::move(semaphore), proxy), fForceFlush(forceFlush) {} in GrSignalSemaphoreOp()
45 static std::unique_ptr<GrWaitSemaphoreOp> Make(sk_sp<GrSemaphore> semaphore, in Make() argument
47 return std::unique_ptr<GrWaitSemaphoreOp>(new GrWaitSemaphoreOp(std::move(semaphore), in Make()
54 explicit GrWaitSemaphoreOp(sk_sp<GrSemaphore> semaphore, GrRenderTargetProxy* proxy) in GrWaitSemaphoreOp() argument
55 : INHERITED(ClassID(), std::move(semaphore), proxy) {} in GrWaitSemaphoreOp()
66 std::unique_ptr<GrSemaphoreOp> GrSemaphoreOp::MakeSignal(sk_sp<GrSemaphore> semaphore, in MakeSignal() argument
69 return GrSignalSemaphoreOp::Make(std::move(semaphore), proxy, forceFlush); in MakeSignal()
[all …]
DGrSemaphoreOp.h19 static std::unique_ptr<GrSemaphoreOp> MakeSignal(sk_sp<GrSemaphore> semaphore,
23 static std::unique_ptr<GrSemaphoreOp> MakeWait(sk_sp<GrSemaphore> semaphore,
27 GrSemaphoreOp(uint32_t classId, sk_sp<GrSemaphore> semaphore, GrRenderTargetProxy* proxy) in GrSemaphoreOp() argument
28 : INHERITED(classId), fSemaphore(std::move(semaphore)) { in GrSemaphoreOp()
/external/skqp/src/gpu/ops/
DGrSemaphoreOp.cpp17 static std::unique_ptr<GrSignalSemaphoreOp> Make(sk_sp<GrSemaphore> semaphore, in Make() argument
20 return std::unique_ptr<GrSignalSemaphoreOp>(new GrSignalSemaphoreOp(std::move(semaphore), in Make()
28 explicit GrSignalSemaphoreOp(sk_sp<GrSemaphore> semaphore, GrRenderTargetProxy* proxy, in GrSignalSemaphoreOp() argument
30 : INHERITED(ClassID(), std::move(semaphore), proxy), fForceFlush(forceFlush) {} in GrSignalSemaphoreOp()
45 static std::unique_ptr<GrWaitSemaphoreOp> Make(sk_sp<GrSemaphore> semaphore, in Make() argument
47 return std::unique_ptr<GrWaitSemaphoreOp>(new GrWaitSemaphoreOp(std::move(semaphore), in Make()
54 explicit GrWaitSemaphoreOp(sk_sp<GrSemaphore> semaphore, GrRenderTargetProxy* proxy) in GrWaitSemaphoreOp() argument
55 : INHERITED(ClassID(), std::move(semaphore), proxy) {} in GrWaitSemaphoreOp()
66 std::unique_ptr<GrSemaphoreOp> GrSemaphoreOp::MakeSignal(sk_sp<GrSemaphore> semaphore, in MakeSignal() argument
69 return GrSignalSemaphoreOp::Make(std::move(semaphore), proxy, forceFlush); in MakeSignal()
[all …]
DGrSemaphoreOp.h19 static std::unique_ptr<GrSemaphoreOp> MakeSignal(sk_sp<GrSemaphore> semaphore,
23 static std::unique_ptr<GrSemaphoreOp> MakeWait(sk_sp<GrSemaphore> semaphore,
27 GrSemaphoreOp(uint32_t classId, sk_sp<GrSemaphore> semaphore, GrRenderTargetProxy* proxy) in GrSemaphoreOp() argument
28 : INHERITED(classId), fSemaphore(std::move(semaphore)) { in GrSemaphoreOp()
/external/ImageMagick/MagickCore/
Dlinked-list.c79 *semaphore; member
125 LockSemaphoreInfo(list_info->semaphore); in AppendValueToLinkedList()
134 UnlockSemaphoreInfo(list_info->semaphore); in AppendValueToLinkedList()
175 LockSemaphoreInfo(list_info->semaphore); in ClearLinkedList()
189 UnlockSemaphoreInfo(list_info->semaphore); in ClearLinkedList()
229 LockSemaphoreInfo(list_info->semaphore); in DestroyLinkedList()
239 UnlockSemaphoreInfo(list_info->semaphore); in DestroyLinkedList()
240 RelinquishSemaphoreInfo(&list_info->semaphore); in DestroyLinkedList()
276 LockSemaphoreInfo(list_info->semaphore); in GetLastValueInLinkedList()
278 UnlockSemaphoreInfo(list_info->semaphore); in GetLastValueInLinkedList()
[all …]
Dsplay-tree.c108 *semaphore; member
162 LockSemaphoreInfo(splay_tree->semaphore); in AddValueToSplayTree()
184 UnlockSemaphoreInfo(splay_tree->semaphore); in AddValueToSplayTree()
191 UnlockSemaphoreInfo(splay_tree->semaphore); in AddValueToSplayTree()
217 UnlockSemaphoreInfo(splay_tree->semaphore); in AddValueToSplayTree()
361 LockSemaphoreInfo(splay_tree->semaphore); in CloneSplayTree()
364 UnlockSemaphoreInfo(splay_tree->semaphore); in CloneSplayTree()
382 UnlockSemaphoreInfo(splay_tree->semaphore); in CloneSplayTree()
496 LockSemaphoreInfo(splay_tree->semaphore); in DeleteNodeByValueFromSplayTree()
499 UnlockSemaphoreInfo(splay_tree->semaphore); in DeleteNodeByValueFromSplayTree()
[all …]
Dexception.c164 LockSemaphoreInfo(exception->semaphore); in ClearMagickException()
170 UnlockSemaphoreInfo(exception->semaphore); in ClearMagickException()
209 LockSemaphoreInfo(exception->semaphore); in CatchException()
232 UnlockSemaphoreInfo(exception->semaphore); in CatchException()
427 if (exception->semaphore == (SemaphoreInfo *) NULL) in DestroyExceptionInfo()
428 ActivateSemaphoreInfo(&exception->semaphore); in DestroyExceptionInfo()
429 LockSemaphoreInfo(exception->semaphore); in DestroyExceptionInfo()
442 UnlockSemaphoreInfo(exception->semaphore); in DestroyExceptionInfo()
445 RelinquishSemaphoreInfo(&exception->semaphore); in DestroyExceptionInfo()
649 LockSemaphoreInfo(relative->semaphore); in InheritException()
[all …]
/external/syslinux/core/include/
Dthread.h17 struct semaphore;
36 struct semaphore *semaphore; member
68 struct semaphore { struct
74 struct semaphore sem = { \ argument
82 mstime_t sem_down(struct semaphore *, mstime_t);
83 void sem_up(struct semaphore *);
84 void sem_init(struct semaphore *, int);
94 static inline void sem_set_invalid(struct semaphore *sem) in sem_set_invalid()
103 static inline bool sem_is_valid(struct semaphore *sem) in sem_is_valid()
Dmbox.h19 struct semaphore prod_sem; /* Producer semaphore (empty slots) */
20 struct semaphore cons_sem; /* Consumer semaphore (data slots) */
21 struct semaphore head_sem; /* Head pointer semaphore */
22 struct semaphore tail_sem; /* Tail pointer semaphore */
/external/skia/src/gpu/vk/
DGrVkSemaphore.cpp27 VkSemaphore semaphore = VK_NULL_HANDLE; in Make() local
29 CreateSemaphore(gpu->device(), &createInfo, nullptr, &semaphore)); in Make()
31 return sk_sp<GrVkSemaphore>(new GrVkSemaphore(gpu, semaphore, false, false, isOwned)); in Make()
35 VkSemaphore semaphore, in MakeWrapped() argument
38 if (VK_NULL_HANDLE == semaphore) { in MakeWrapped()
43 return sk_sp<GrVkSemaphore>(new GrVkSemaphore(gpu, semaphore, prohibitSignal, prohibitWait, in MakeWrapped()
47 GrVkSemaphore::GrVkSemaphore(const GrVkGpu* gpu, VkSemaphore semaphore, bool prohibitSignal, in GrVkSemaphore() argument
50 fResource = new Resource(semaphore, prohibitSignal, prohibitWait, isOwned); in GrVkSemaphore()
69 backendSemaphore->initVulkan(fResource->semaphore()); in setBackendSemaphore()
DGrVkSemaphore.h28 VkSemaphore semaphore,
36 Resource(VkSemaphore semaphore, bool prohibitSignal, bool prohibitWait, bool isOwned) in Resource() argument
38 , fSemaphore(semaphore) in Resource()
45 VkSemaphore semaphore() const { return fSemaphore; } in semaphore() function
86 GrVkSemaphore(const GrVkGpu* gpu, VkSemaphore semaphore, bool prohibitSignal, bool prohibitWait,
/external/skqp/src/gpu/vk/
DGrVkSemaphore.cpp27 VkSemaphore semaphore = VK_NULL_HANDLE; in Make() local
29 CreateSemaphore(gpu->device(), &createInfo, nullptr, &semaphore)); in Make()
31 return sk_sp<GrVkSemaphore>(new GrVkSemaphore(gpu, semaphore, false, false, isOwned)); in Make()
35 VkSemaphore semaphore, in MakeWrapped() argument
38 if (VK_NULL_HANDLE == semaphore) { in MakeWrapped()
43 return sk_sp<GrVkSemaphore>(new GrVkSemaphore(gpu, semaphore, prohibitSignal, prohibitWait, in MakeWrapped()
47 GrVkSemaphore::GrVkSemaphore(const GrVkGpu* gpu, VkSemaphore semaphore, bool prohibitSignal, in GrVkSemaphore() argument
50 fResource = new Resource(semaphore, prohibitSignal, prohibitWait, isOwned); in GrVkSemaphore()
69 backendSemaphore->initVulkan(fResource->semaphore()); in setBackendSemaphore()
DGrVkSemaphore.h28 VkSemaphore semaphore,
36 Resource(VkSemaphore semaphore, bool prohibitSignal, bool prohibitWait, bool isOwned) in Resource() argument
38 , fSemaphore(semaphore) in Resource()
45 VkSemaphore semaphore() const { return fSemaphore; } in semaphore() function
86 GrVkSemaphore(const GrVkGpu* gpu, VkSemaphore semaphore, bool prohibitSignal, bool prohibitWait,
/external/deqp/framework/delibs/dethread/win32/
DdeSemaphoreWin32.c51 void deSemaphore_destroy (deSemaphore semaphore) in deSemaphore_destroy() argument
53 HANDLE handle = (HANDLE)semaphore; in deSemaphore_destroy()
57 void deSemaphore_increment (deSemaphore semaphore) in deSemaphore_increment() argument
59 HANDLE handle = (HANDLE)semaphore; in deSemaphore_increment()
65 void deSemaphore_decrement (deSemaphore semaphore) in deSemaphore_decrement() argument
67 HANDLE handle = (HANDLE)semaphore; in deSemaphore_decrement()
73 deBool deSemaphore_tryDecrement (deSemaphore semaphore) in deSemaphore_tryDecrement() argument
75 HANDLE handle = (HANDLE)semaphore; in deSemaphore_tryDecrement()
/external/dng_sdk/source/
Ddng_pthread.cpp62 HANDLE semaphore; member
184 HANDLE semaphore = ::TlsGetValue(thread_wait_sema_TLS_index); in GetThreadSemaphore() local
185 if (semaphore == NULL) in GetThreadSemaphore()
187 semaphore = ::CreateSemaphore(NULL, 0, 1, NULL); in GetThreadSemaphore()
188 ::TlsSetValue(thread_wait_sema_TLS_index, semaphore); in GetThreadSemaphore()
191 return semaphore; in GetThreadSemaphore()
198 HANDLE semaphore = (HANDLE)::TlsGetValue(thread_wait_sema_TLS_index); in FreeThreadSemaphore() local
200 if (semaphore != NULL) in FreeThreadSemaphore()
203 ::CloseHandle(semaphore); in FreeThreadSemaphore()
577 HANDLE semaphore = GetThreadSemaphore(); in cond_wait_internal() local
[all …]
/external/jmdns/src/javax/jmdns/impl/
DDNSStatefulObject.java57 Semaphore semaphore = _semaphores.get(thread); in waitForEvent() local
58 if (semaphore == null) { in waitForEvent()
59 semaphore = new Semaphore(1, true); in waitForEvent()
60 semaphore.drainPermits(); in waitForEvent()
61 _semaphores.putIfAbsent(thread, semaphore); in waitForEvent()
63 semaphore = _semaphores.get(thread); in waitForEvent()
65 semaphore.tryAcquire(timeout, TimeUnit.MILLISECONDS); in waitForEvent()
76 for (Semaphore semaphore : semaphores) { in signalEvent()
77 semaphore.release(); in signalEvent()
78 semaphores.remove(semaphore); in signalEvent()
/external/squashfs-tools/kernel-2.4/include/linux/
Dsquashfs_fs_sb.h60 struct semaphore read_data_mutex;
61 struct semaphore read_page_mutex;
62 struct semaphore block_cache_mutex;
63 struct semaphore fragment_mutex;
64 struct semaphore meta_index_mutex;
/external/deqp/framework/delibs/dethread/
DdeSemaphore.h42 void deSemaphore_destroy (deSemaphore semaphore);
44 void deSemaphore_increment (deSemaphore semaphore);
45 void deSemaphore_decrement (deSemaphore semaphore);
47 deBool deSemaphore_tryDecrement (deSemaphore semaphore);
/external/skqp/src/gpu/
DGrBackendTextureImageGenerator.cpp36 sk_sp<GrSemaphore> semaphore, in Make() argument
55 info, texture.get(), origin, context->uniqueID(), std::move(semaphore), backendTexture)); in Make()
62 sk_sp<GrSemaphore> semaphore, in GrBackendTextureImageGenerator() argument
66 , fSemaphore(std::move(semaphore)) in GrBackendTextureImageGenerator()
133 sk_sp<GrSemaphore> semaphore = fSemaphore; in onGenerateTexture() local
138 [refHelper, releaseProcHelper, semaphore, backendTexture] in onGenerateTexture()
144 if (semaphore) { in onGenerateTexture()
145 resourceProvider->priv().gpu()->waitSemaphore(semaphore); in onGenerateTexture()
/external/skia/src/gpu/
DGrBackendTextureImageGenerator.cpp36 sk_sp<GrSemaphore> semaphore, in Make() argument
55 info, texture.get(), origin, context->uniqueID(), std::move(semaphore), backendTexture)); in Make()
62 sk_sp<GrSemaphore> semaphore, in GrBackendTextureImageGenerator() argument
66 , fSemaphore(std::move(semaphore)) in GrBackendTextureImageGenerator()
133 sk_sp<GrSemaphore> semaphore = fSemaphore; in onGenerateTexture() local
138 [refHelper, releaseProcHelper, semaphore, backendTexture] in onGenerateTexture()
144 if (semaphore) { in onGenerateTexture()
145 resourceProvider->priv().gpu()->waitSemaphore(semaphore); in onGenerateTexture()
/external/valgrind/drd/tests/
Dtc18_semabuse.stderr.exp2 Semaphore reinitialization: semaphore 0x........
5 semaphore 0x........ was first observed at:
9 Invalid semaphore: semaphore 0x........
12 semaphore 0x........ was first observed at:

123456789