MCPcopy Create free account
hub / github.com/HaxeFoundation/hxcpp / __hxcpp_semaphore_try_acquire

Function __hxcpp_semaphore_try_acquire

src/hx/Thread.cpp:231–235  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

229 semaphore->acquire();
230}
231bool __hxcpp_semaphore_try_acquire(Dynamic inSemaphore, double timeout) {
232 auto semaphore = inSemaphore.Cast<hx::thread::CountingSemaphore>();
233
234 return semaphore->tryAcquire(timeout);
235}
236void __hxcpp_semaphore_release(Dynamic inSemaphore) {
237 auto semaphore = inSemaphore.Cast<hx::thread::CountingSemaphore>();
238

Callers

nothing calls this directly

Calls 1

tryAcquireMethod · 0.45

Tested by

no test coverage detected