/external/deqp/framework/delibs/dethread/unix/ |
D | deNamedSemaphoreUnix.c | 36 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 …]
|
D | deSemaphoreUnix.c | 53 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/ImageMagick/MagickCore/ |
D | linked-list.c | 80 *semaphore; member 126 LockSemaphoreInfo(list_info->semaphore); in AppendValueToLinkedList() 135 UnlockSemaphoreInfo(list_info->semaphore); in AppendValueToLinkedList() 176 LockSemaphoreInfo(list_info->semaphore); in ClearLinkedList() 190 UnlockSemaphoreInfo(list_info->semaphore); in ClearLinkedList() 230 LockSemaphoreInfo(list_info->semaphore); in DestroyLinkedList() 240 UnlockSemaphoreInfo(list_info->semaphore); in DestroyLinkedList() 241 RelinquishSemaphoreInfo(&list_info->semaphore); in DestroyLinkedList() 277 LockSemaphoreInfo(list_info->semaphore); in GetLastValueInLinkedList() 279 UnlockSemaphoreInfo(list_info->semaphore); in GetLastValueInLinkedList() [all …]
|
D | splay-tree.c | 109 *semaphore; member 163 LockSemaphoreInfo(splay_tree->semaphore); in AddValueToSplayTree() 185 UnlockSemaphoreInfo(splay_tree->semaphore); in AddValueToSplayTree() 192 UnlockSemaphoreInfo(splay_tree->semaphore); in AddValueToSplayTree() 218 UnlockSemaphoreInfo(splay_tree->semaphore); in AddValueToSplayTree() 362 LockSemaphoreInfo(splay_tree->semaphore); in CloneSplayTree() 365 UnlockSemaphoreInfo(splay_tree->semaphore); in CloneSplayTree() 383 UnlockSemaphoreInfo(splay_tree->semaphore); in CloneSplayTree() 497 LockSemaphoreInfo(splay_tree->semaphore); in DeleteNodeByValueFromSplayTree() 500 UnlockSemaphoreInfo(splay_tree->semaphore); in DeleteNodeByValueFromSplayTree() [all …]
|
D | exception.c | 163 LockSemaphoreInfo(exception->semaphore); in ClearMagickException() 169 UnlockSemaphoreInfo(exception->semaphore); in ClearMagickException() 211 LockSemaphoreInfo(exception->semaphore); in CatchException() 225 UnlockSemaphoreInfo(exception->semaphore); in CatchException() 418 if (exception->semaphore == (SemaphoreInfo *) NULL) in DestroyExceptionInfo() 419 ActivateSemaphoreInfo(&exception->semaphore); in DestroyExceptionInfo() 420 LockSemaphoreInfo(exception->semaphore); in DestroyExceptionInfo() 434 UnlockSemaphoreInfo(exception->semaphore); in DestroyExceptionInfo() 437 RelinquishSemaphoreInfo(&exception->semaphore); in DestroyExceptionInfo() 641 LockSemaphoreInfo(relative->semaphore); in InheritException() [all …]
|
/external/mesa3d/src/intel/vulkan/ |
D | anv_queue.c | 848 struct anv_semaphore *semaphore; in anv_CreateSemaphore() local 852 semaphore = vk_alloc2(&device->alloc, pAllocator, sizeof(*semaphore), 8, in anv_CreateSemaphore() 854 if (semaphore == NULL) in anv_CreateSemaphore() 867 semaphore->permanent.type = ANV_SEMAPHORE_TYPE_DUMMY; in anv_CreateSemaphore() 871 semaphore->permanent.type = ANV_SEMAPHORE_TYPE_DRM_SYNCOBJ; in anv_CreateSemaphore() 872 semaphore->permanent.syncobj = anv_gem_syncobj_create(device, 0); in anv_CreateSemaphore() 873 if (!semaphore->permanent.syncobj) { in anv_CreateSemaphore() 874 vk_free2(&device->alloc, pAllocator, semaphore); in anv_CreateSemaphore() 878 semaphore->permanent.type = ANV_SEMAPHORE_TYPE_BO; in anv_CreateSemaphore() 880 4096, &semaphore->permanent.bo); in anv_CreateSemaphore() [all …]
|
/external/deqp/framework/delibs/dethread/win32/ |
D | deSemaphoreWin32.c | 51 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/skia/src/gpu/vk/ |
D | GrVkSemaphore.cpp | 25 VkSemaphore semaphore = VK_NULL_HANDLE; in Make() local 27 CreateSemaphore(gpu->device(), &createInfo, nullptr, &semaphore)); in Make() 29 return sk_sp<GrVkSemaphore>(new GrVkSemaphore(gpu, semaphore, false, false, isOwned)); in Make() 33 VkSemaphore semaphore, in MakeWrapped() argument 36 if (VK_NULL_HANDLE == semaphore) { in MakeWrapped() 41 return sk_sp<GrVkSemaphore>(new GrVkSemaphore(gpu, semaphore, prohibitSignal, prohibitWait, in MakeWrapped() 45 GrVkSemaphore::GrVkSemaphore(GrVkGpu* gpu, VkSemaphore semaphore, bool prohibitSignal, in GrVkSemaphore() argument 48 fResource = new Resource(semaphore, prohibitSignal, prohibitWait, isOwned); in GrVkSemaphore() 78 backendSemaphore.initVulkan(fResource->semaphore()); in backendSemaphore()
|
D | GrVkSemaphore.h | 27 VkSemaphore semaphore, 35 Resource(VkSemaphore semaphore, bool prohibitSignal, bool prohibitWait, bool isOwned) in Resource() argument 37 , fSemaphore(semaphore) in Resource() 44 VkSemaphore semaphore() const { return fSemaphore; } in semaphore() function 89 GrVkSemaphore(GrVkGpu* gpu, VkSemaphore semaphore, bool prohibitSignal, bool prohibitWait,
|
/external/skqp/src/gpu/vk/ |
D | GrVkSemaphore.cpp | 25 VkSemaphore semaphore = VK_NULL_HANDLE; in Make() local 27 CreateSemaphore(gpu->device(), &createInfo, nullptr, &semaphore)); in Make() 29 return sk_sp<GrVkSemaphore>(new GrVkSemaphore(gpu, semaphore, false, false, isOwned)); in Make() 33 VkSemaphore semaphore, in MakeWrapped() argument 36 if (VK_NULL_HANDLE == semaphore) { in MakeWrapped() 41 return sk_sp<GrVkSemaphore>(new GrVkSemaphore(gpu, semaphore, prohibitSignal, prohibitWait, in MakeWrapped() 45 GrVkSemaphore::GrVkSemaphore(GrVkGpu* gpu, VkSemaphore semaphore, bool prohibitSignal, in GrVkSemaphore() argument 48 fResource = new Resource(semaphore, prohibitSignal, prohibitWait, isOwned); in GrVkSemaphore() 78 backendSemaphore.initVulkan(fResource->semaphore()); in backendSemaphore()
|
D | GrVkSemaphore.h | 27 VkSemaphore semaphore, 35 Resource(VkSemaphore semaphore, bool prohibitSignal, bool prohibitWait, bool isOwned) in Resource() argument 37 , fSemaphore(semaphore) in Resource() 44 VkSemaphore semaphore() const { return fSemaphore; } in semaphore() function 89 GrVkSemaphore(GrVkGpu* gpu, VkSemaphore semaphore, bool prohibitSignal, bool prohibitWait,
|
/external/dng_sdk/source/ |
D | dng_pthread.cpp | 62 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/skia/src/gpu/ops/ |
D | GrSemaphoreOp.cpp | 21 sk_sp<GrSemaphore> semaphore, in Make() argument 25 return pool->allocate<GrWaitSemaphoreOp>(std::move(semaphore), proxy); in Make() 33 explicit GrWaitSemaphoreOp(sk_sp<GrSemaphore> semaphore, GrRenderTargetProxy* proxy) in GrWaitSemaphoreOp() argument 34 : INHERITED(ClassID(), std::move(semaphore), proxy) {} in GrWaitSemaphoreOp() 46 sk_sp<GrSemaphore> semaphore, in MakeWait() argument 48 return GrWaitSemaphoreOp::Make(context, std::move(semaphore), proxy); in MakeWait()
|
/external/skqp/src/gpu/ops/ |
D | GrSemaphoreOp.cpp | 21 sk_sp<GrSemaphore> semaphore, in Make() argument 25 return pool->allocate<GrWaitSemaphoreOp>(std::move(semaphore), proxy); in Make() 33 explicit GrWaitSemaphoreOp(sk_sp<GrSemaphore> semaphore, GrRenderTargetProxy* proxy) in GrWaitSemaphoreOp() argument 34 : INHERITED(ClassID(), std::move(semaphore), proxy) {} in GrWaitSemaphoreOp() 46 sk_sp<GrSemaphore> semaphore, in MakeWait() argument 48 return GrWaitSemaphoreOp::Make(context, std::move(semaphore), proxy); in MakeWait()
|
/external/squashfs-tools/kernel-2.4/include/linux/ |
D | squashfs_fs_sb.h | 60 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/ |
D | deSemaphore.h | 42 void deSemaphore_destroy (deSemaphore semaphore); 44 void deSemaphore_increment (deSemaphore semaphore); 45 void deSemaphore_decrement (deSemaphore semaphore); 47 deBool deSemaphore_tryDecrement (deSemaphore semaphore);
|
/external/skia/src/gpu/ |
D | GrBackendTextureImageGenerator.cpp | 38 sk_sp<GrSemaphore> semaphore, SkColorType colorType, in Make() argument 62 std::move(semaphore), backendTexture)); in Make() 69 sk_sp<GrSemaphore> semaphore, in GrBackendTextureImageGenerator() argument 73 , fSemaphore(std::move(semaphore)) in GrBackendTextureImageGenerator() 141 sk_sp<GrSemaphore> semaphore = fSemaphore; in onGenerateTexture() local 149 [refHelper, releaseProcHelper, semaphore, in onGenerateTexture() 151 if (semaphore) { in onGenerateTexture() 152 resourceProvider->priv().gpu()->waitSemaphore(semaphore); in onGenerateTexture()
|
/external/skqp/src/gpu/ |
D | GrBackendTextureImageGenerator.cpp | 36 sk_sp<GrSemaphore> semaphore, SkColorType colorType, in Make() argument 60 std::move(semaphore), backendTexture)); in Make() 67 sk_sp<GrSemaphore> semaphore, in GrBackendTextureImageGenerator() argument 71 , fSemaphore(std::move(semaphore)) in GrBackendTextureImageGenerator() 138 sk_sp<GrSemaphore> semaphore = fSemaphore; in onGenerateTexture() local 146 [refHelper, releaseProcHelper, semaphore, in onGenerateTexture() 152 if (semaphore) { in onGenerateTexture() 153 resourceProvider->priv().gpu()->waitSemaphore(semaphore); in onGenerateTexture()
|
/external/deqp/framework/platform/android/ |
D | tcuAndroidRenderActivity.hpp | 64 de::Semaphore* semaphore; member 99 Message (MessageType type_, de::Semaphore* semaphore) in Message() 103 DE_ASSERT(semaphore); in Message() 104 payload.semaphore = semaphore; in Message()
|
/external/mesa3d/src/mesa/main/ |
D | externalobjects.h | 192 _mesa_IsSemaphoreEXT(GLuint semaphore); 195 _mesa_SemaphoreParameterui64vEXT(GLuint semaphore, 200 _mesa_GetSemaphoreParameterui64vEXT(GLuint semaphore, 205 _mesa_WaitSemaphoreEXT(GLuint semaphore, 213 _mesa_SignalSemaphoreEXT(GLuint semaphore, 227 _mesa_ImportSemaphoreFdEXT(GLuint semaphore,
|
/external/deqp/external/vulkancts/modules/vulkan/synchronization/ |
D | vktSynchronizationBasicSemaphoreTests.cpp | 53 const Unique<VkSemaphore> semaphore (createSemaphore (vk, device)); in basicOneQueueCase() local 75 &semaphore.get(), // const VkSemaphore* pSignalSemaphores; in basicOneQueueCase() 81 &semaphore.get(), // const VkSemaphore* pWaitSemaphores; in basicOneQueueCase() 116 VkSemaphore semaphore; in basicChainCase() local 117 err = vk.createSemaphore(device, &sci, DE_NULL, &semaphore); in basicChainCase() 120 semaphores.push_back(semaphore); in basicChainCase() 186 Move<VkSemaphore> semaphore; in basicMultiQueueCase() local 251 semaphore = (createSemaphore (vk, *logicalDevice)); in basicMultiQueueCase() 265 submitInfo[FIRST].pSignalSemaphores = &semaphore.get(); in basicMultiQueueCase() 270 submitInfo[SECOND].pWaitSemaphores = &semaphore.get(); in basicMultiQueueCase()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/templates/ |
D | template_16-1.in | 25 * -> child registers a handler for %%MYSIG%% with SA_RESTART, then waits for the semaphore 26 * -> parent kills the child with %%MYSIG%%, then post the semaphore. 51 #include <semaphore.h> 154 /* Initialize the semaphore */ 159 UNRESOLVED( ret, "Failed to init a semaphore" ); 172 is waiting for the semaphore... */ 196 UNRESOLVED( errno, "Failed to post the semaphore" ); 211 UNRESOLVED( ret, "Failed to destroy the semaphore" );
|
/external/swiftshader/third_party/llvm-7.0/llvm/utils/lit/lit/ |
D | run.py | 195 semaphore = None 198 semaphore = parallelism_semaphores[pg] 199 if semaphore: 200 semaphore.acquire() 221 if semaphore: 222 semaphore.release()
|
/external/libusb/libusb/os/ |
D | wince_usb.c | 167 HANDLE semaphore; in wince_init() local 172 semaphore = CreateSemaphore(NULL, 1, 1, sem_name); in wince_init() 173 if (semaphore == NULL) { in wince_init() 180 if (WaitForSingleObject(semaphore, INFINITE) != WAIT_OBJECT_0) { in wince_init() 182 CloseHandle(semaphore); in wince_init() 237 ReleaseSemaphore(semaphore, 1, NULL); // increase count back to 1 in wince_init() 238 CloseHandle(semaphore); in wince_init() 244 HANDLE semaphore; in wince_exit() local 248 semaphore = CreateSemaphore(NULL, 1, 1, sem_name); in wince_exit() 249 if (semaphore == NULL) in wince_exit() [all …]
|
/external/skia/tests/ |
D | VkHardwareBufferTest.cpp | 820 GrBackendSemaphore semaphore; in flushSurfaceAndSignalSemaphore() local 821 if (!this->setupSemaphoreForSignaling(reporter, &semaphore)) { in flushSurfaceAndSignalSemaphore() 824 GrSemaphoresSubmitted submitted = fGrContext->flush(kNone_GrFlushFlags, 1, &semaphore); in flushSurfaceAndSignalSemaphore() 829 SkASSERT(semaphore.isInitialized()); in flushSurfaceAndSignalSemaphore() 830 if (!this->exportSemaphore(reporter, semaphore)) { in flushSurfaceAndSignalSemaphore() 879 VkSemaphore semaphore; in setupSemaphoreForSignaling() local 880 VkResult err = fVkCreateSemaphore(fDevice, &semaphoreInfo, nullptr, &semaphore); in setupSemaphoreForSignaling() 885 beSemaphore->initVulkan(semaphore); in setupSemaphoreForSignaling() 891 VkSemaphore semaphore = beSemaphore.vkSemaphore(); in exportSemaphore() local 892 if (VK_NULL_HANDLE == semaphore) { in exportSemaphore() [all …]
|