mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-29 14:23:34 +08:00
POSIX: add defines system clock calls
This commit is contained in:
@@ -73,6 +73,9 @@
|
|||||||
#define system_sleep sleep
|
#define system_sleep sleep
|
||||||
#pragma GCC poison sleep
|
#pragma GCC poison sleep
|
||||||
|
|
||||||
|
#define system_clock_gettime clock_gettime
|
||||||
|
#define system_clock_settime clock_settime
|
||||||
|
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#define system_pthread_cond_timedwait pthread_cond_timedwait
|
#define system_pthread_cond_timedwait pthread_cond_timedwait
|
||||||
// We can't poison pthread_cond_timedwait because it seems to be used in the
|
// We can't poison pthread_cond_timedwait because it seems to be used in the
|
||||||
|
|||||||
Reference in New Issue
Block a user