diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-09-09 03:05:37 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-09-09 03:05:37 +0000 |
commit | c962f5a19217404192ddd72e1ba8a1830fdba675 (patch) | |
tree | 411b89044b3f54f204d3b427cb54e4508cfd1a42 /libpthread/linuxthreads/cancel.c | |
parent | 0f8dedf5a4a2dbd16d1c0a24921f09763a9cc9c2 (diff) |
remove duplicated p_canceled setting and extra whitespace
Diffstat (limited to 'libpthread/linuxthreads/cancel.c')
-rw-r--r-- | libpthread/linuxthreads/cancel.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libpthread/linuxthreads/cancel.c b/libpthread/linuxthreads/cancel.c index 333925ef8..dbba7eef4 100644 --- a/libpthread/linuxthreads/cancel.c +++ b/libpthread/linuxthreads/cancel.c @@ -89,13 +89,12 @@ int pthread_cancel(pthread_t thread) } pextricate = th->p_extricate; - th->p_canceled = 1; pid = th->p_pid; /* If the thread has registered an extrication interface, then invoke the interface. If it returns 1, then we succeeded in dequeuing the thread from whatever waiting object it was enqueued - with. In that case, it is our responsibility to wake it up. + with. In that case, it is our responsibility to wake it up. And also to set the p_woken_by_cancel flag so the woken thread can tell that it was woken by cancellation. */ |