mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-16 00:37:04 +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_once(o, i) _pthread_once(o, i)
|
||||||
#define thr_self() _pthread_self()
|
#define thr_self() _pthread_self()
|
||||||
#define thr_exit(x) _pthread_exit(x)
|
#define thr_exit(x) _pthread_exit(x)
|
||||||
|
#ifdef __rtems__
|
||||||
|
#define thr_main() (0)
|
||||||
|
#else /* __rtems__ */
|
||||||
#define thr_main() _pthread_main_np()
|
#define thr_main() _pthread_main_np()
|
||||||
|
#endif /* __rtems__ */
|
||||||
|
Reference in New Issue
Block a user