diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1996-06-03 21:06:51 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1996-06-03 21:06:51 +0000 |
commit | e811d68705ccbd1829bc275f6933be996661149c (patch) | |
tree | 6b38df56de6f9e9ee7d7e584de1562bce2ac0e52 /c/src/exec/posix/inline/pthread.inl | |
parent | deleted POSIX threads typedef masking Thread_Control (diff) | |
download | rtems-e811d68705ccbd1829bc275f6933be996661149c.tar.bz2 |
deleted POSIX threads typedef masking Thread_Control
added initial version of pthread_detach and pthread_join
Diffstat (limited to '')
-rw-r--r-- | c/src/exec/posix/inline/pthread.inl | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/c/src/exec/posix/inline/pthread.inl b/c/src/exec/posix/inline/pthread.inl index 256372d326..2c2a2d5d7b 100644 --- a/c/src/exec/posix/inline/pthread.inl +++ b/c/src/exec/posix/inline/pthread.inl @@ -22,10 +22,9 @@ * _POSIX_Threads_Allocate */ -STATIC INLINE POSIX_Threads_Control *_POSIX_Threads_Allocate( void ) +STATIC INLINE Thread_Control *_POSIX_Threads_Allocate( void ) { - return (POSIX_Threads_Control *) - _Objects_Allocate( &_POSIX_Threads_Information ); + return (Thread_Control *) _Objects_Allocate( &_POSIX_Threads_Information ); } /*PAGE @@ -34,7 +33,7 @@ STATIC INLINE POSIX_Threads_Control *_POSIX_Threads_Allocate( void ) */ STATIC INLINE void _POSIX_Threads_Free ( - POSIX_Threads_Control *the_pthread + Thread_Control *the_pthread ) { _Objects_Free( &_POSIX_Threads_Information, &the_pthread->Object ); @@ -45,13 +44,13 @@ STATIC INLINE void _POSIX_Threads_Free ( * _POSIX_Threads_Get */ -STATIC INLINE POSIX_Threads_Control *_POSIX_Threads_Get ( - Objects_Id *id, +STATIC INLINE Thread_Control *_POSIX_Threads_Get ( + pthread_t id, Objects_Locations *location ) { - return (POSIX_Threads_Control *) - _Objects_Get( &_POSIX_Threads_Information, *id, location ); + return (Thread_Control *) + _Objects_Get( &_POSIX_Threads_Information, (Objects_Id)id, location ); } /*PAGE @@ -60,7 +59,7 @@ STATIC INLINE POSIX_Threads_Control *_POSIX_Threads_Get ( */ STATIC INLINE boolean _POSIX_Threads_Is_null ( - POSIX_Threads_Control *the_pthread + Thread_Control *the_pthread ) { return !the_pthread; |