summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/cancel.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-10-10 16:03:38 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-10-10 16:03:38 +0000
commit171bbec50871de9b60ae87c460bbfceebc26f769 (patch)
tree7bd0ac9e75dd10f9f1196f504dd603c3212ebf8b /cpukit/posix/src/cancel.c
parent2009-10-10 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-171bbec50871de9b60ae87c460bbfceebc26f769.tar.bz2
2009-10-10 Joel Sherrill <joel.sherrill@oarcorp.com>
* posix/include/rtems/posix/threadsup.h, posix/src/cancel.c, posix/src/canceleval.c: Make psxcancel run again. _POSIX_Thread_Exit() can be called on running thread or another thread when it is cancelled.
Diffstat (limited to 'cpukit/posix/src/cancel.c')
-rw-r--r--cpukit/posix/src/cancel.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cpukit/posix/src/cancel.c b/cpukit/posix/src/cancel.c
index df93ffeec2..6058ff2605 100644
--- a/cpukit/posix/src/cancel.c
+++ b/cpukit/posix/src/cancel.c
@@ -52,6 +52,7 @@ int pthread_cancel(
thread_support->cancelation_requested = 1;
+ /* This enables dispatch implicitly */
_POSIX_Thread_Evaluate_cancellation_and_enable_dispatch( the_thread );
return 0;