summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/inline
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1996-06-03 21:06:51 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1996-06-03 21:06:51 +0000
commite811d68705ccbd1829bc275f6933be996661149c (patch)
tree6b38df56de6f9e9ee7d7e584de1562bce2ac0e52 /cpukit/posix/inline
parentdeleted POSIX threads typedef masking Thread_Control (diff)
downloadrtems-e811d68705ccbd1829bc275f6933be996661149c.tar.bz2
deleted POSIX threads typedef masking Thread_Control
added initial version of pthread_detach and pthread_join
Diffstat (limited to 'cpukit/posix/inline')
-rw-r--r--cpukit/posix/inline/rtems/posix/pthread.inl17
1 files changed, 8 insertions, 9 deletions
diff --git a/cpukit/posix/inline/rtems/posix/pthread.inl b/cpukit/posix/inline/rtems/posix/pthread.inl
index 256372d326..2c2a2d5d7b 100644
--- a/cpukit/posix/inline/rtems/posix/pthread.inl
+++ b/cpukit/posix/inline/rtems/posix/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;