diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-05-13 10:28:14 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-05-20 07:49:39 +0200 |
commit | da82656065d09f7b6aa411ba361287afdd787204 (patch) | |
tree | 3a17cae7059c89d111642cb27a1cf55ded61f604 /cpukit/posix/src/pthread.c | |
parent | score: Avoid Giant lock for _Thread_Start() (diff) | |
download | rtems-da82656065d09f7b6aa411ba361287afdd787204.tar.bz2 |
posix: Rework thread cancellation
Add Thread_Life_state::THREAD_LIFE_CHANGE_DEFERRED and rework the POSIX
thread cancellation to use the thread life states.
Update #2555.
Update #2626.
Diffstat (limited to 'cpukit/posix/src/pthread.c')
-rw-r--r-- | cpukit/posix/src/pthread.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/cpukit/posix/src/pthread.c b/cpukit/posix/src/pthread.c index 12c5ace537..766ac01e5f 100644 --- a/cpukit/posix/src/pthread.c +++ b/cpukit/posix/src/pthread.c @@ -33,7 +33,6 @@ #include <rtems/score/userextimpl.h> #include <rtems/score/watchdogimpl.h> #include <rtems/score/wkspace.h> -#include <rtems/posix/cancel.h> #include <rtems/posix/pthreadimpl.h> #include <rtems/posix/priorityimpl.h> #include <rtems/posix/psignalimpl.h> @@ -209,12 +208,6 @@ static bool _POSIX_Threads_Create_extension( _POSIX_Priority_From_core( created->current_priority ); /* - * POSIX 1003.1 1996, 18.2.2.2 - */ - RTEMS_STATIC_ASSERT( PTHREAD_CANCEL_ENABLE == 0, cancelability_state ); - RTEMS_STATIC_ASSERT( PTHREAD_CANCEL_DEFERRED == 0, cancelability_type ); - - /* * If the thread is not a posix thread, then all posix signals are blocked * by default. * |