| 234 | return semaphore->tryAcquire(timeout); |
| 235 | } |
| 236 | void __hxcpp_semaphore_release(Dynamic inSemaphore) { |
| 237 | auto semaphore = inSemaphore.Cast<hx::thread::CountingSemaphore>(); |
| 238 | |
| 239 | semaphore->release(); |
| 240 | } |
| 241 | |
| 242 | // --- Condition ------------------------------------------------------------ |
| 243 |