diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2009-11-13 13:11:00 +0100 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2009-11-17 20:56:59 +0100 |
commit | e44670f61784fe97b8e04008971a9467392ac3d6 (patch) | |
tree | 4e4290182e9cbeffd146017f12c2368692700f0f /libpthread/nptl/pthread_getattr_np.c | |
parent | 83c6f716ecb659461b38606e56cdec9dee26d97f (diff) | |
download | uClibc-alpine-e44670f61784fe97b8e04008971a9467392ac3d6.tar.bz2 uClibc-alpine-e44670f61784fe97b8e04008971a9467392ac3d6.tar.xz |
remove wait callbacks for non-cancelation funcs
No need to install a cancellation handler, these are no cancellation
point.
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libpthread/nptl/pthread_getattr_np.c')
-rw-r--r-- | libpthread/nptl/pthread_getattr_np.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/libpthread/nptl/pthread_getattr_np.c b/libpthread/nptl/pthread_getattr_np.c index 969459fe8..8819731ab 100644 --- a/libpthread/nptl/pthread_getattr_np.c +++ b/libpthread/nptl/pthread_getattr_np.c @@ -39,10 +39,6 @@ pthread_getattr_np (thread_id, attr) struct pthread_attr *iattr = (struct pthread_attr *) attr; int ret = 0; - /* We have to handle cancellation in the following code since we are - locking another threads desriptor. */ - pthread_cleanup_push ((void (*) (void *)) lll_unlock_wake_cb, &thread->lock); - lll_lock (thread->lock); /* The thread library is responsible for keeping the values in the @@ -171,7 +167,5 @@ pthread_getattr_np (thread_id, attr) lll_unlock (thread->lock); - pthread_cleanup_pop (0); - return ret; } |