/external/pigweed/pw_sync/ |
D | binary_semaphore_facade_test.cc | 52 TEST(BinarySemaphore, EmptyInitialState) { in TEST() argument 53 BinarySemaphore semaphore; in TEST() 59 TEST(BinarySemaphore, Release) { in TEST() argument 60 BinarySemaphore semaphore; in TEST() 68 BinarySemaphore empty_initial_semaphore; 69 TEST(BinarySemaphore, EmptyInitialStateStatic) { in TEST() argument 73 BinarySemaphore release_semaphore; 74 TEST(BinarySemaphore, ReleaseStatic) { in TEST() argument 82 TEST(BinarySemaphore, TryAcquireFor) { in TEST() argument 83 BinarySemaphore semaphore; in TEST() [all …]
|
D | binary_semaphore.cc | 48 return pw::sync::BinarySemaphore::max(); in pw_sync_BinarySemaphore_Max()
|
D | docs.rst | 1015 BinarySemaphore section in Signaling Primitives 1017 BinarySemaphore is a specialization of CountingSemaphore with an arbitrary token 1021 Implementations of BinarySemaphore are typically more efficient than the 1024 The BinarySemaphore is initialized to being empty or having no tokens.
|
/external/pigweed/pw_sync/public/pw_sync/ |
D | binary_semaphore.h | 39 class BinarySemaphore { 43 BinarySemaphore(); 44 ~BinarySemaphore(); 45 BinarySemaphore(const BinarySemaphore&) = delete; 46 BinarySemaphore(BinarySemaphore&&) = delete; 47 BinarySemaphore& operator=(const BinarySemaphore&) = delete; 48 BinarySemaphore& operator=(BinarySemaphore&&) = delete; 97 using pw_sync_BinarySemaphore = pw::sync::BinarySemaphore;
|
/external/pigweed/pw_sync_embos/public/pw_sync_embos/ |
D | binary_semaphore_inline.h | 25 inline BinarySemaphore::BinarySemaphore() : native_type_() { in BinarySemaphore() function 29 inline BinarySemaphore::~BinarySemaphore() { OS_DeleteCSema(&native_type_); } in ~BinarySemaphore() 31 inline void BinarySemaphore::release() { OS_SignalCSemaMax(&native_type_, 1); } in release() 33 inline void BinarySemaphore::acquire() { in acquire() 38 inline bool BinarySemaphore::try_acquire() noexcept { in try_acquire() 42 inline bool BinarySemaphore::try_acquire_until( in try_acquire_until() 49 inline BinarySemaphore::native_handle_type BinarySemaphore::native_handle() { in native_handle()
|
/external/pigweed/pw_sync_threadx/public/pw_sync_threadx/ |
D | binary_semaphore_inline.h | 29 inline BinarySemaphore::BinarySemaphore() : native_type_() { in BinarySemaphore() function 36 inline BinarySemaphore::~BinarySemaphore() { in ~BinarySemaphore() 40 inline void BinarySemaphore::release() { in release() 46 inline void BinarySemaphore::acquire() { in acquire() 53 inline bool BinarySemaphore::try_acquire() noexcept { in try_acquire() 62 inline bool BinarySemaphore::try_acquire_until( in try_acquire_until() 69 inline BinarySemaphore::native_handle_type BinarySemaphore::native_handle() { in native_handle()
|
/external/pigweed/pw_sync_freertos/public/pw_sync_freertos/ |
D | binary_semaphore_inline.h | 26 inline BinarySemaphore::BinarySemaphore() : native_type_() { in BinarySemaphore() function 33 inline BinarySemaphore::~BinarySemaphore() { vSemaphoreDelete(&native_type_); } in ~BinarySemaphore() 35 inline void BinarySemaphore::release() { in release() 48 inline void BinarySemaphore::acquire() { in acquire() 62 inline bool BinarySemaphore::try_acquire() noexcept { in try_acquire() 75 inline bool BinarySemaphore::try_acquire_until( in try_acquire_until() 82 inline BinarySemaphore::native_handle_type BinarySemaphore::native_handle() { in native_handle()
|
/external/swiftshader/src/Vulkan/ |
D | VkSemaphore.cpp | 32 class BinarySemaphore::External 140 void BinarySemaphore::wait() in wait() 174 void BinarySemaphore::signal() in signal() 191 BinarySemaphore::BinarySemaphore(const VkSemaphoreCreateInfo *pCreateInfo, void *mem, const VkAlloc… in BinarySemaphore() function in vk::BinarySemaphore 201 void BinarySemaphore::destroy(const VkAllocationCallbacks *pAllocator) in destroy() 217 size_t BinarySemaphore::ComputeRequiredAllocationSize(const VkSemaphoreCreateInfo *pCreateInfo) in ComputeRequiredAllocationSize() 224 BinarySemaphore::External *BinarySemaphore::allocateExternal() in allocateExternal() 226 auto *ext = reinterpret_cast<BinarySemaphore::External *>( in allocateExternal() 232 void BinarySemaphore::deallocateExternal(BinarySemaphore::External *ext) in deallocateExternal() 239 VkResult BinarySemaphore::importPayload(bool temporaryImport, in importPayload() [all …]
|
D | VkSemaphore.hpp | 33 class BinarySemaphore; 60 class BinarySemaphore : public Semaphore, public Object<BinarySemaphore, VkSemaphore> class 63 …BinarySemaphore(const VkSemaphoreCreateInfo *pCreateInfo, void *mem, const VkAllocationCallbacks *… 199 static_assert(std::is_same_v<T, BinarySemaphore> || std::is_same_v<T, TimelineSemaphore>); in DynamicCast() 200 if constexpr(std::is_same_v<T, BinarySemaphore>) in DynamicCast()
|
D | VkQueue.cpp | 205 else if(auto *sem = DynamicCast<BinarySemaphore>(submitInfo.pWaitSemaphores[j])) in submitQueue() 233 else if(auto *sem = DynamicCast<BinarySemaphore>(submitInfo.pSignalSemaphores[j])) in submitQueue() 320 auto *semaphore = vk::DynamicCast<BinarySemaphore>(presentInfo->pWaitSemaphores[i]); in present()
|
D | VkSemaphoreExternalFuchsia.hpp | 29 class ZirconEventExternalSemaphore : public BinarySemaphore::External
|
D | VkSemaphoreExternalLinux.hpp | 133 class OpaqueFdExternalSemaphore : public BinarySemaphore::External
|
D | libVulkan.cpp | 1464 return vk::BinarySemaphore::Create(pAllocator, pCreateInfo, pSemaphore, pAllocator); in vkCreateSemaphore() 1491 auto *sem = vk::DynamicCast<vk::BinarySemaphore>(pGetFdInfo->semaphore); in vkGetSemaphoreFdKHR() 1507 auto *sem = vk::DynamicCast<vk::BinarySemaphore>(pImportSemaphoreInfo->semaphore); in vkImportSemaphoreFdKHR() 1526 auto *sem = vk::DynamicCast<vk::BinarySemaphore>(pImportSemaphoreZirconHandleInfo->semaphore); in vkImportSemaphoreZirconHandleFUCHSIA() 1544 auto *sem = vk::DynamicCast<vk::BinarySemaphore>(pGetZirconHandleInfo->semaphore); in vkGetSemaphoreZirconHandleFUCHSIA() 4058 …return vk::Cast(swapchain)->getNextImage(timeout, vk::DynamicCast<vk::BinarySemaphore>(semaphore),… in vkAcquireNextImageKHR() 4074 …>swapchain)->getNextImage(pAcquireInfo->timeout, vk::DynamicCast<vk::BinarySemaphore>(pAcquireInfo… in vkAcquireNextImage2KHR() 4154 vk::DynamicCast<vk::BinarySemaphore>(semaphore)->signal(); in vkAcquireImageANDROID()
|
/external/pigweed/pw_sync_stl/public/pw_sync_stl/ |
D | binary_semaphore_inline.h | 21 inline BinarySemaphore::BinarySemaphore() in BinarySemaphore() function 24 inline BinarySemaphore::~BinarySemaphore() {} in ~BinarySemaphore() 26 inline bool BinarySemaphore::try_acquire_for( in try_acquire_for() 37 inline BinarySemaphore::native_handle_type BinarySemaphore::native_handle() { in native_handle()
|
/external/pigweed/pw_thread/ |
D | thread_facade_test.cc | 34 static_cast<sync::BinarySemaphore*>(arg)->release(); in ReleaseBinarySemaphore() 41 sync::BinarySemaphore thread_ran_sem; in TEST() 53 sync::BinarySemaphore thread_ran_sem; in TEST() 78 sync::BinarySemaphore thread_ran_sem; in TEST() 96 sync::BinarySemaphore thread_a_ran_sem; in TEST() 99 sync::BinarySemaphore thread_b_ran_sem; in TEST() 126 sync::BinarySemaphore thread_ran_sem; in TEST() 146 pw::sync::BinarySemaphore& semaphore() { return semaphore_; } in semaphore() 151 sync::BinarySemaphore semaphore_;
|
/external/pigweed/pw_sync_stl/ |
D | binary_semaphore.cc | 23 void BinarySemaphore::release() { in release() 25 PW_DCHECK_UINT_LT(native_type_.count, BinarySemaphore::max()); in release() 30 void BinarySemaphore::acquire() { in acquire() 36 bool BinarySemaphore::try_acquire() noexcept { in try_acquire() 45 bool BinarySemaphore::try_acquire_until( in try_acquire_until()
|
D | BUILD.gn | 31 # This target provides the backend for pw::sync::BinarySemaphore. 52 "The STL pw::sync::BinarySemaphore backend only works with the " +
|
/external/swiftshader/src/WSI/ |
D | VkSwapchainKHR.hpp | 27 class BinarySemaphore; 45 …VkResult getNextImage(uint64_t timeout, BinarySemaphore *semaphore, Fence *fence, uint32_t *pImage…
|
D | VkSwapchainKHR.cpp | 173 VkResult SwapchainKHR::getNextImage(uint64_t timeout, BinarySemaphore *semaphore, Fence *fence, uin… in getNextImage()
|
/external/pigweed/pw_sync_embos/ |
D | binary_semaphore.cc | 29 bool BinarySemaphore::try_acquire_for(SystemClock::duration for_at_least) { in try_acquire_for()
|
D | BUILD.gn | 31 # This target provides the backend for pw::sync::BinarySemaphore. 55 "The embOS pw::sync::BinarySemaphore backend only works with the " +
|
/external/pigweed/pw_sync_freertos/ |
D | binary_semaphore.cc | 36 bool BinarySemaphore::try_acquire_for(SystemClock::duration for_at_least) { in try_acquire_for()
|
D | BUILD.gn | 31 # This target provides the backend for pw::sync::BinarySemaphore. 55 "The FreeRTOS pw::sync::BinarySemaphore backend only works with the " +
|
/external/pigweed/pw_sync_threadx/ |
D | binary_semaphore.cc | 29 bool BinarySemaphore::try_acquire_for(SystemClock::duration for_at_least) { in try_acquire_for()
|
D | BUILD.gn | 53 # This target provides the backend for pw::sync::BinarySemaphore. 80 "The ThreadX pw::sync::BinarySemaphore backend only works with the " +
|