diff options
Diffstat (limited to 'cpukit/score/inline')
-rw-r--r-- | cpukit/score/inline/rtems/score/thread.inl | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/cpukit/score/inline/rtems/score/thread.inl b/cpukit/score/inline/rtems/score/thread.inl index 0c98830f76..560006c9e9 100644 --- a/cpukit/score/inline/rtems/score/thread.inl +++ b/cpukit/score/inline/rtems/score/thread.inl @@ -387,5 +387,35 @@ RTEMS_INLINE_ROUTINE void _Thread_Internal_free ( _Objects_Free( &_Thread_Internal_information, &the_task->Object ); } +/*PAGE + * + * _Thread_Get_libc_reent + * + * DESCRIPTION: + * + * This routine returns the C library re-enterant pointer. + */ + +RTEMS_INLINE_ROUTINE void **_Thread_Get_libc_reent( void ) +{ + return _Thread_libc_reent; +} + +/*PAGE + * + * _Thread_Set_libc_reent + * + * DESCRIPTION: + * + * This routine set the C library re-enterant pointer. + */ + +RTEMS_INLINE_ROUTINE void _Thread_Set_libc_reent ( + void **libc_reent +) +{ + _Thread_libc_reent = libc_reent; +} + #endif /* end of include file */ |