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

Method CountingSemaphore_obj

src/hx/thread/CountingSemaphore.apple.cpp:15–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13};
14
15hx::thread::CountingSemaphore_obj::CountingSemaphore_obj(int value) : impl(new Impl())
16{
17 impl->semaphore = dispatch_semaphore_create(value);
18
19 hx::GCSetFinalizer(this, Impl::finalise);
20}
21
22void hx::thread::CountingSemaphore_obj::acquire()
23{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected