diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-05-13 08:16:30 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-05-20 07:49:39 +0200 |
commit | 54550e048d3a49435912797d2024f80671e93267 (patch) | |
tree | bf49901187d98cf6a71975bdef7038d3ae0988c2 /cpukit/posix/include | |
parent | score: Simplify _Thread_Life_action_handler() (diff) | |
download | rtems-54550e048d3a49435912797d2024f80671e93267.tar.bz2 |
posix: Rework pthread_join()
Rework pthread_join() to use _Thread_Join().
Close #2402.
Update #2555.
Update #2626.
Close #2714.
Diffstat (limited to 'cpukit/posix/include')
-rw-r--r-- | cpukit/posix/include/rtems/posix/pthreadimpl.h | 14 | ||||
-rw-r--r-- | cpukit/posix/include/rtems/posix/threadsup.h | 4 |
2 files changed, 0 insertions, 18 deletions
diff --git a/cpukit/posix/include/rtems/posix/pthreadimpl.h b/cpukit/posix/include/rtems/posix/pthreadimpl.h index 42f10b08bc..16b0163384 100644 --- a/cpukit/posix/include/rtems/posix/pthreadimpl.h +++ b/cpukit/posix/include/rtems/posix/pthreadimpl.h @@ -35,8 +35,6 @@ extern "C" { */ /**@{**/ -#define POSIX_THREAD_JOIN_TQ_OPERATIONS &_Thread_queue_Operations_FIFO - /** * The following sets the minimum stack size for POSIX threads. */ @@ -211,18 +209,6 @@ RTEMS_INLINE_ROUTINE bool _POSIX_Threads_Is_null ( return !the_pthread; } -RTEMS_INLINE_ROUTINE Thread_Control *_POSIX_Threads_Join_dequeue( - POSIX_API_Control *api -) -{ - return _Thread_queue_Dequeue( - &api->Join_List, - POSIX_THREAD_JOIN_TQ_OPERATIONS, - NULL, - 0 - ); -} - /** @} */ #ifdef __cplusplus diff --git a/cpukit/posix/include/rtems/posix/threadsup.h b/cpukit/posix/include/rtems/posix/threadsup.h index 8109921270..3a7cfbc6dc 100644 --- a/cpukit/posix/include/rtems/posix/threadsup.h +++ b/cpukit/posix/include/rtems/posix/threadsup.h @@ -47,10 +47,6 @@ typedef struct { Thread_Control *thread; /** This is the POSIX threads attribute set. */ pthread_attr_t Attributes; - /** This indicates whether the thread is attached or detached. */ - int detachstate; - /** This is the set of threads waiting for the thread to exit. */ - Thread_queue_Control Join_List; /** This is the thread's current scheduling policy. */ int schedpolicy; /** This is the thread's current set of scheduling parameters. */ |