diff options
author | davidxu <davidxu@FreeBSD.org> | 2010-09-24 07:52:07 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2010-09-24 07:52:07 +0000 |
commit | 722a516400bd9a03211f28a90b2dd42b7dce5d0e (patch) | |
tree | cbbca5f7206c7ad83e07597815477b6c62599da9 /lib/libthr/thread/thr_private.h | |
parent | cc9d3a376dc5d0be14e05fa9543b5d21203c46ec (diff) | |
download | FreeBSD-src-722a516400bd9a03211f28a90b2dd42b7dce5d0e.zip FreeBSD-src-722a516400bd9a03211f28a90b2dd42b7dce5d0e.tar.gz |
In most cases, cancel_point and cancel_async needn't be checked again,
because cancellation is almostly checked at cancellation points.
Diffstat (limited to 'lib/libthr/thread/thr_private.h')
-rw-r--r-- | lib/libthr/thread/thr_private.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/libthr/thread/thr_private.h b/lib/libthr/thread/thr_private.h index 8b545e5..a42b4ec 100644 --- a/lib/libthr/thread/thr_private.h +++ b/lib/libthr/thread/thr_private.h @@ -357,7 +357,6 @@ struct pthread { #define SHOULD_CANCEL(thr) \ ((thr)->cancel_pending && (thr)->cancel_enable && \ - ((thr)->cancel_point || (thr)->cancel_async) && \ (thr)->no_cancel == 0) /* Cancellation is enabled */ |