mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-14 07:15:58 +08:00
reentrant.h: There is no main thread in RTEMS
This commit is contained in:
@@ -125,4 +125,8 @@
|
||||
#define thr_once(o, i) _pthread_once(o, i)
|
||||
#define thr_self() _pthread_self()
|
||||
#define thr_exit(x) _pthread_exit(x)
|
||||
#ifdef __rtems__
|
||||
#define thr_main() (0)
|
||||
#else /* __rtems__ */
|
||||
#define thr_main() _pthread_main_np()
|
||||
#endif /* __rtems__ */
|
||||
|
Reference in New Issue
Block a user