From bb8a3f00cfa3913c7f360f2fc601b9315cb5474a Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Fri, 13 Nov 2009 13:11:00 +0100 Subject: 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 Signed-off-by: Austin Foxley --- libpthread/nptl/pthread_getschedparam.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'libpthread/nptl/pthread_getschedparam.c') diff --git a/libpthread/nptl/pthread_getschedparam.c b/libpthread/nptl/pthread_getschedparam.c index 64b15cde9..10ad27142 100644 --- a/libpthread/nptl/pthread_getschedparam.c +++ b/libpthread/nptl/pthread_getschedparam.c @@ -38,10 +38,6 @@ __pthread_getschedparam (threadid, policy, param) int result = 0; - /* We have to handle cancellation in the following code since we are - locking another threads descriptor. */ - pthread_cleanup_push ((void (*) (void *)) lll_unlock_wake_cb, &pd->lock); - lll_lock (pd->lock); /* The library is responsible for maintaining the values at all @@ -74,8 +70,6 @@ __pthread_getschedparam (threadid, policy, param) lll_unlock (pd->lock); - pthread_cleanup_pop (0); - return result; } strong_alias (__pthread_getschedparam, pthread_getschedparam) -- cgit v1.2.3