| 807 | } |
| 808 | |
| 809 | OIDN_API void oidnWaitSemaphoresAsync(OIDNDevice deviceC, |
| 810 | const OIDNSemaphore* semaphoresC, |
| 811 | const uint64_t* values, |
| 812 | const uint32_t* timeoutsMs, |
| 813 | int numSemaphores) |
| 814 | { |
| 815 | Device* device = reinterpret_cast<Device*>(deviceC); |
| 816 | OIDN_TRY |
| 817 | checkHandle(deviceC); |
| 818 | OIDN_LOCK_DEVICE(device); |
| 819 | device->checkCommitted(); |
| 820 | device->submitWaitSemaphores( |
| 821 | reinterpret_cast<Semaphore* const*>(semaphoresC), |
| 822 | values, |
| 823 | timeoutsMs, |
| 824 | numSemaphores); |
| 825 | OIDN_CATCH_DEVICE(device) |
| 826 | } |
| 827 | |
| 828 | OIDN_API void oidnRetainSemaphore(OIDNSemaphore semaphoreC) |
| 829 | { |
no test coverage detected