The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

d/ohmd: use os_nanosleep for delay_after_initialization

+1 -8
+1 -8
src/xrt/drivers/ohmd/oh_device.c
··· 16 16 #include <stdlib.h> 17 17 #include <string.h> 18 18 #include <assert.h> 19 - #ifndef XRT_OS_WINDOWS 20 - #include <unistd.h> // for sleep() 21 - #endif 22 19 23 20 #include "os/os_time.h" 24 21 ··· 992 989 993 990 994 991 if (info.quirks.delay_after_initialization) { 995 - unsigned int time_to_sleep = 1; 996 - do { 997 - //! @todo convert to os_nanosleep 998 - time_to_sleep = sleep(time_to_sleep); 999 - } while (time_to_sleep); 992 + os_nanosleep(time_s_to_ns(1.0)); 1000 993 } 1001 994 1002 995 if (ohd->ll <= U_LOGGING_DEBUG) {