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

Function __hxcpp_mutex_try

src/hx/Thread.cpp:208–213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

206 mutex->acquire();
207}
208bool __hxcpp_mutex_try(Dynamic inMutex)
209{
210 auto mutex = inMutex.Cast<hx::thread::RecursiveMutex>();
211
212 return mutex->tryAcquire();
213}
214void __hxcpp_mutex_release(Dynamic inMutex)
215{
216 auto mutex = inMutex.Cast<hx::thread::RecursiveMutex>();

Callers

nothing calls this directly

Calls 1

tryAcquireMethod · 0.45

Tested by

no test coverage detected