| 17 | static MutexSys g_mutex; |
| 18 | |
| 19 | RTC_API RTCDevice rtcNewDevice(const char* config) |
| 20 | { |
| 21 | RTC_CATCH_BEGIN; |
| 22 | RTC_TRACE(rtcNewDevice); |
| 23 | Lock<MutexSys> lock(g_mutex); |
| 24 | Device* device = new Device(config); |
| 25 | return (RTCDevice) device->refInc(); |
| 26 | RTC_CATCH_END(nullptr); |
| 27 | return (RTCDevice) nullptr; |
| 28 | } |
| 29 | |
| 30 | #if defined(EMBREE_SYCL_SUPPORT) |
| 31 |