/third_party/vk-gl-cts/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()
|
/third_party/openGLES/extensions/NV/ |
D | NV_timeline_semaphore.txt | 43 a semaphore type to the semaphore object. In OpenGL, timeline semaphore 51 void SemaphoreParameterivNV(uint semaphore, 55 void GetSemaphoreParameterivNV(uint semaphore, 93 returns <n> previously unused semaphore names in <semaphores>. 99 Semaphore parameters control the type of the semaphore and how 100 semaphore wait and signal operations behave. 101 Table 4.3 defines which parameters are available for a semaphore 105 void SemaphoreParameterivNV(uint semaphore, 111 void SemaphoreParameterui64vEXT(uint semaphore, 115 <semaphore> is the name of the semaphore object on which the [all …]
|
/third_party/skia/third_party/externals/swiftshader/src/Vulkan/ |
D | VkSemaphoreExternalLinux.hpp | 186 semaphore->wait(); in wait() 191 return semaphore->tryWait(); in tryWait() 196 semaphore->signal(); in signal() 202 if(semaphore) in unmapRegion() 204 if(semaphore->deref()) in unmapRegion() 206 semaphore->~SharedSemaphore(); in unmapRegion() 208 memfd.unmap(semaphore, sw::memoryPageSize()); in unmapRegion() 210 semaphore = nullptr; in unmapRegion() 224 semaphore = reinterpret_cast<SharedSemaphore *>(addr); in mapRegion() 227 new(semaphore) SharedSemaphore(initialValue); in mapRegion() [all …]
|
D | VkSemaphore.hpp | 43 static inline Semaphore *Cast(VkSemaphore semaphore) in Cast() argument 45 return static_cast<Semaphore *>(static_cast<void *>(semaphore)); in Cast() 193 Semaphore *semaphore = vk::Cast(object); in DynamicCast() local 194 if(semaphore == nullptr) in DynamicCast() 202 if(semaphore->getSemaphoreType() != VK_SEMAPHORE_TYPE_BINARY) in DynamicCast() 209 if(semaphore->getSemaphoreType() != VK_SEMAPHORE_TYPE_TIMELINE) in DynamicCast() 214 return static_cast<T *>(semaphore); in DynamicCast()
|
/third_party/skia/src/gpu/vk/ |
D | GrVkSemaphore.cpp | 25 VkSemaphore semaphore = VK_NULL_HANDLE; in Make() local 28 &semaphore)); in Make() 33 return std::unique_ptr<GrVkSemaphore>(new GrVkSemaphore(gpu, semaphore, false, false, isOwned)); in Make() 37 VkSemaphore semaphore, in MakeWrapped() argument 40 if (VK_NULL_HANDLE == semaphore) { in MakeWrapped() 46 return std::unique_ptr<GrVkSemaphore>(new GrVkSemaphore(gpu, semaphore, prohibitSignal, in MakeWrapped() 51 GrVkSemaphore::GrVkSemaphore(GrVkGpu* gpu, VkSemaphore semaphore, bool prohibitSignal, in GrVkSemaphore() argument 53 fResource = new Resource(gpu, semaphore, prohibitSignal, prohibitWait, isOwned); in GrVkSemaphore() 71 backendSemaphore.initVulkan(fResource->semaphore()); in backendSemaphore()
|
/third_party/vk-gl-cts/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()
|
/third_party/flutter/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 79 GrVkSemaphore(GrVkGpu* gpu, VkSemaphore semaphore, bool prohibitSignal, bool prohibitWait,
|
/third_party/skia/third_party/externals/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 …]
|
/third_party/mesa3d/src/mesa/main/ |
D | externalobjects.h | 61 _mesa_lookup_semaphore_object(struct gl_context *ctx, GLuint semaphore) in _mesa_lookup_semaphore_object() argument 63 if (!semaphore) in _mesa_lookup_semaphore_object() 67 _mesa_HashLookup(ctx->Shared->SemaphoreObjects, semaphore); in _mesa_lookup_semaphore_object() 71 _mesa_lookup_semaphore_object_locked(struct gl_context *ctx, GLuint semaphore) in _mesa_lookup_semaphore_object_locked() argument 73 if (!semaphore) in _mesa_lookup_semaphore_object_locked() 77 _mesa_HashLookupLocked(ctx->Shared->SemaphoreObjects, semaphore); in _mesa_lookup_semaphore_object_locked() 221 _mesa_IsSemaphoreEXT(GLuint semaphore); 224 _mesa_SemaphoreParameterui64vEXT(GLuint semaphore, 229 _mesa_GetSemaphoreParameterui64vEXT(GLuint semaphore, 234 _mesa_WaitSemaphoreEXT(GLuint semaphore, [all …]
|
/third_party/skia/third_party/externals/dawn/src/dawn_native/vulkan/external_semaphore/ |
D | SemaphoreServiceZirconHandle.cpp | 66 VkSemaphore semaphore = VK_NULL_HANDLE; in ImportSemaphore() local 73 mDevice->fn.CreateSemaphore(mDevice->GetVkDevice(), &info, nullptr, &*semaphore), in ImportSemaphore() 80 importSemaphoreHandleInfo.semaphore = semaphore; in ImportSemaphore() 91 mDevice->fn.DestroySemaphore(mDevice->GetVkDevice(), semaphore, nullptr); in ImportSemaphore() 95 return semaphore; in ImportSemaphore() 118 ResultOrError<ExternalSemaphoreHandle> Service::ExportSemaphore(VkSemaphore semaphore) { in ExportSemaphore() argument 122 semaphoreGetHandleInfo.semaphore = semaphore; in ExportSemaphore()
|
D | SemaphoreServiceFD.cpp | 72 VkSemaphore semaphore = VK_NULL_HANDLE; in ImportSemaphore() local 79 mDevice->fn.CreateSemaphore(mDevice->GetVkDevice(), &info, nullptr, &*semaphore), in ImportSemaphore() 85 importSemaphoreFdInfo.semaphore = semaphore; in ImportSemaphore() 95 mDevice->fn.DestroySemaphore(mDevice->GetVkDevice(), semaphore, nullptr); in ImportSemaphore() 99 return semaphore; in ImportSemaphore() 121 ResultOrError<ExternalSemaphoreHandle> Service::ExportSemaphore(VkSemaphore semaphore) { in ExportSemaphore() argument 125 semaphoreGetFdInfo.semaphore = semaphore; in ExportSemaphore()
|
/third_party/flutter/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()
|
/third_party/openGLES/extensions/NVX/ |
D | NVX_progress_fence.txt | 46 GPU command streams. A semaphore type called "progress fence" is 47 derived from the GL semaphore. The progress fence semaphore is 49 created semaphore object. Like other semaphores, these are signaled 51 stream with an associated fence value that is written to the semaphore 55 This blocks the GPU until the progress fence semaphore reaches or exceeds the 96 creates a named progress fence semaphore object. 103 Progress fence operations can be performed on named semaphore objects. The 119 If a value in <semaphoreArray> is not the name of a semaphore object, 138 If a value in <semaphoreArray> is not the name of a semaphore object, 151 If a value in <semaphoreArray> is not the name of a semaphore object, [all …]
|
/third_party/mesa3d/src/virtio/venus-protocol/ |
D | vn_protocol_driver_semaphore.h | 260 size += vn_sizeof_VkSemaphore(&val->semaphore); in vn_sizeof_VkSemaphoreSignalInfo_self() 288 vn_encode_VkSemaphore(enc, &val->semaphore); in vn_encode_VkSemaphoreSignalInfo_self() 313 vn_decode_VkSemaphore(dec, &val->semaphore); in vn_decode_VkSemaphoreSignalInfo_self() 402 static inline size_t vn_sizeof_vkDestroySemaphore(VkDevice device, VkSemaphore semaphore, const VkA… in vn_sizeof_vkDestroySemaphore() argument 409 cmd_size += vn_sizeof_VkSemaphore(&semaphore); in vn_sizeof_vkDestroySemaphore() 417 …encoder *enc, VkCommandFlagsEXT cmd_flags, VkDevice device, VkSemaphore semaphore, const VkAllocat… in vn_encode_vkDestroySemaphore() argument 425 vn_encode_VkSemaphore(enc, &semaphore); in vn_encode_vkDestroySemaphore() 430 static inline size_t vn_sizeof_vkDestroySemaphore_reply(VkDevice device, VkSemaphore semaphore, con… in vn_sizeof_vkDestroySemaphore_reply() argument 442 …Semaphore_reply(struct vn_cs_decoder *dec, VkDevice device, VkSemaphore semaphore, const VkAllocat… in vn_decode_vkDestroySemaphore_reply() argument 453 static inline size_t vn_sizeof_vkGetSemaphoreCounterValue(VkDevice device, VkSemaphore semaphore, u… in vn_sizeof_vkGetSemaphoreCounterValue() argument [all …]
|
/third_party/mesa3d/src/intel/vulkan/ |
D | anv_wsi.c | 42 ANV_FROM_HANDLE(anv_semaphore, semaphore, _semaphore); in anv_wsi_signal_semaphore_for_memory() 50 anv_semaphore_reset_temporary(device, semaphore); in anv_wsi_signal_semaphore_for_memory() 52 struct anv_semaphore_impl *impl = &semaphore->temporary; in anv_wsi_signal_semaphore_for_memory() 144 ANV_FROM_HANDLE(anv_semaphore, semaphore, pPresentInfo->pWaitSemaphores[i]); in anv_QueuePresentKHR() 146 semaphore->temporary.type != ANV_SEMAPHORE_TYPE_NONE ? in anv_QueuePresentKHR() 147 &semaphore->temporary : &semaphore->permanent; in anv_QueuePresentKHR() 179 ANV_FROM_HANDLE(anv_semaphore, semaphore, pPresentInfo->pWaitSemaphores[i]); in anv_QueuePresentKHR() 186 anv_semaphore_reset_temporary(queue->device, semaphore); in anv_QueuePresentKHR()
|
D | anv_queue.c | 921 struct anv_semaphore *semaphore, in maybe_transfer_temporary_semaphore() argument 924 struct anv_semaphore_impl *impl = &semaphore->temporary; in maybe_transfer_temporary_semaphore() 929 impl = &semaphore->permanent; in maybe_transfer_temporary_semaphore() 987 ANV_FROM_HANDLE(anv_semaphore, semaphore, _semaphore); in anv_queue_submit_add_in_semaphore() 989 semaphore->temporary.type != ANV_SEMAPHORE_TYPE_NONE ? in anv_queue_submit_add_in_semaphore() 990 &semaphore->temporary : &semaphore->permanent; in anv_queue_submit_add_in_semaphore() 1012 result = maybe_transfer_temporary_semaphore(queue, submit, semaphore, &impl); in anv_queue_submit_add_in_semaphore() 1073 ANV_FROM_HANDLE(anv_semaphore, semaphore, _semaphore); in anv_queue_submit_add_out_semaphore() 1088 semaphore->temporary.type != ANV_SEMAPHORE_TYPE_NONE ? in anv_queue_submit_add_out_semaphore() 1089 &semaphore->temporary : &semaphore->permanent; in anv_queue_submit_add_out_semaphore() [all …]
|
/third_party/boost/libs/atomic/src/ |
D | lock_pool.cpp | 560 struct semaphore struct 563 semaphore* m_next; argument 565 semaphore* m_prev; argument 574 semaphore() BOOST_NOEXCEPT : in semaphore() function 582 ~semaphore() BOOST_NOEXCEPT in ~semaphore() argument 591 static semaphore* create() BOOST_NOEXCEPT in create() argument 593 semaphore* p = new (std::nothrow) semaphore(); in create() 609 void link_after(semaphore* that) BOOST_NOEXCEPT in link_after() argument 615 void link_before(semaphore* that) BOOST_NOEXCEPT in link_before() argument 617 semaphore* prev = that->m_prev; in link_before() [all …]
|
/third_party/libusb/examples/ |
D | dpfp.c | 53 sem_t *semaphore; in semaphore_create() local 57 semaphore = sem_open(name, O_CREAT | O_EXCL, 0, 0); in semaphore_create() 58 if (semaphore == SEM_FAILED) in semaphore_create() 62 return semaphore; in semaphore_create() 65 static inline void semaphore_give(semaphore_t semaphore) in semaphore_give() argument 67 (void)sem_post(semaphore); in semaphore_give() 70 static inline void semaphore_take(semaphore_t semaphore) in semaphore_take() argument 72 (void)sem_wait(semaphore); in semaphore_take() 75 static inline void semaphore_destroy(semaphore_t semaphore) in semaphore_destroy() argument 77 (void)sem_close(semaphore); in semaphore_destroy() [all …]
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/synchronization/ |
D | vktSynchronizationBasicSemaphoreTests.cpp | 73 const Unique<VkSemaphore> semaphore (createTestSemaphore(context, vk, device, config)); in basicOneQueueCase() local 87 …VkSemaphoreSubmitInfoKHR signalSemaphoreSubmitInfo = makeCommonSemaphoreSubmitInfo(semaphore.get(… in basicOneQueueCase() 88 …VkSemaphoreSubmitInfoKHR waitSemaphoreSubmitInfo = makeCommonSemaphoreSubmitInfo(semaphore.get()… in basicOneQueueCase() 137 err = vk.createSemaphore(device, &sci, DE_NULL, &pSignalSemaphoreInfo->semaphore); in basicChainCase() 153 pWaitSemaphoreInfo->semaphore = pSignalSemaphoreInfo->semaphore; in basicChainCase() 170 vk.destroySemaphore(device, s.semaphore, DE_NULL); in basicChainCase() 187 VkSemaphore semaphore; in basicChainTimelineCase() local 190 VK_CHECK(vk.createSemaphore(device, &sci, DE_NULL, &semaphore)); in basicChainTimelineCase() 192 …itSemaphoreSubmitInfos (basicChainLength, makeCommonSemaphoreSubmitInfo(semaphore, 0u, VK_PIPELINE… in basicChainTimelineCase() 193 …alSemaphoreSubmitInfos (basicChainLength, makeCommonSemaphoreSubmitInfo(semaphore, 0u, VK_PIPELINE… in basicChainTimelineCase() [all …]
|
/third_party/vk-gl-cts/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);
|
/third_party/mesa3d/src/amd/vulkan/ |
D | radv_wsi.c | 82 RADV_FROM_HANDLE(radv_semaphore, semaphore, pAcquireInfo->semaphore); in radv_AcquireNextImage2KHR() 94 if (semaphore) { in radv_AcquireNextImage2KHR() 95 struct radv_semaphore_part *part = semaphore->temporary.kind != RADV_SEMAPHORE_NONE in radv_AcquireNextImage2KHR() 96 ? &semaphore->temporary in radv_AcquireNextImage2KHR() 97 : &semaphore->permanent; in radv_AcquireNextImage2KHR()
|
/third_party/pulseaudio/src/pulsecore/ |
D | aupdate.c | 39 pa_semaphore *semaphore; member 49 a->semaphore = pa_semaphore_new(0); in pa_aupdate_new() 58 pa_semaphore_free(a->semaphore); in pa_aupdate_free() 91 pa_semaphore_post(a->semaphore); in pa_aupdate_read_end() 118 pa_semaphore_wait(a->semaphore); in pa_aupdate_write_swap()
|
/third_party/boost/boost/interprocess/sync/shm/ |
D | named_semaphore.hpp | 69 interprocess_semaphore *semaphore() const in semaphore() function in boost::interprocess::ipcdetail::shm_named_semaphore 118 { semaphore()->post(); } in post() 121 { semaphore()->wait(); } in wait() 124 { return semaphore()->try_wait(); } in try_wait() 127 { return semaphore()->timed_wait(abs_time); } in timed_wait()
|