summaryrefslogtreecommitdiffstats
path: root/c/src/exec/posix/src/pthread.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2002-07-05 18:13:18 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2002-07-05 18:13:18 +0000
commitf845e96e7beef7d6db35c80e0075dcb07a71dce3 (patch)
tree20e8b5d161afe8cff844b85b0b45611f8611f9c7 /c/src/exec/posix/src/pthread.c
parent2002-07-05 Joel Sherrill <joel@OARcorp.com> (diff)
downloadrtems-f845e96e7beef7d6db35c80e0075dcb07a71dce3.tar.bz2
2002-07-05 Joel Sherrill <joel@OARcorp.com>
* include/rtems/posix/cancel.h, src/cancel.c, src/cancelrun.c, src/mqueue.c, src/pthread.c, src/semaphore.c, src/setcancelstate.c, src/setcanceltype.c, src/testcancel.c: Per PR164, corrected the behavior of thread cancellation and did some cleanup as a side-effect.
Diffstat (limited to 'c/src/exec/posix/src/pthread.c')
-rw-r--r--c/src/exec/posix/src/pthread.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/c/src/exec/posix/src/pthread.c b/c/src/exec/posix/src/pthread.c
index e1bade3baf..e91bcd4708 100644
--- a/c/src/exec/posix/src/pthread.c
+++ b/c/src/exec/posix/src/pthread.c
@@ -207,7 +207,9 @@ User_extensions_routine _POSIX_Threads_Delete_extension(
api = deleted->API_Extensions[ THREAD_API_POSIX ];
- /* XXX run cancellation handlers */
+ /*
+ * Run the POSIX cancellation handlers
+ */
_POSIX_Keys_Run_destructors( deleted );
@@ -373,8 +375,9 @@ void _POSIX_Threads_Manager_initialization(
*/
_User_extensions_Add_API_set( &_POSIX_Threads_User_extensions );
-
+
_API_extensions_Add( &_POSIX_Threads_API_extensions );
+
/*
* If we supported MP, then here we would ...