mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-06-06 16:13:12 +08:00
rtems-uthread_main_np.c: Moved rtems_init_task_id extern to pthread_np.h.
This commit is contained in:
parent
3ac9bb177e
commit
24ddf77f01
@ -1 +1,2 @@
|
|||||||
/* empty file */
|
/* empty file */
|
||||||
|
extern rtems_id rtems_init_task_id;
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <rtems.h>
|
#include <rtems.h>
|
||||||
|
#include <pthread_np.h>
|
||||||
|
|
||||||
__weak_reference(_pthread_main_np, pthread_main_np);
|
__weak_reference(_pthread_main_np, pthread_main_np);
|
||||||
|
|
||||||
@ -12,9 +13,6 @@ __weak_reference(_pthread_main_np, pthread_main_np);
|
|||||||
int
|
int
|
||||||
_pthread_main_np()
|
_pthread_main_np()
|
||||||
{
|
{
|
||||||
/* Created and set in rtems_bsd_initialize */
|
|
||||||
extern rtems_id rtems_init_task_id;
|
|
||||||
|
|
||||||
if ( rtems_init_task_id == rtems_task_self() )
|
if ( rtems_init_task_id == rtems_task_self() )
|
||||||
return 1;
|
return 1;
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user