From 54550e048d3a49435912797d2024f80671e93267 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 13 May 2016 08:16:30 +0200 Subject: posix: Rework pthread_join() Rework pthread_join() to use _Thread_Join(). Close #2402. Update #2555. Update #2626. Close #2714. --- cpukit/posix/include/rtems/posix/pthreadimpl.h | 14 -------------- cpukit/posix/include/rtems/posix/threadsup.h | 4 ---- 2 files changed, 18 deletions(-) (limited to 'cpukit/posix/include') 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. */ -- cgit v1.2.3