diff options
author | Ulrich Drepper <drepper@redhat.com> | 2003-12-27 06:08:32 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2003-12-27 06:08:32 +0000 |
commit | 8f8b76f08b79f52bd491057dfc1de84e2d3803ae (patch) | |
tree | 17b8c14f09d01594b8c5d897693cfa9124321520 | |
parent | 057829267eb3220382dc5b77a09febc0c688bf71 (diff) | |
download | glibc-8f8b76f08b79f52bd491057dfc1de84e2d3803ae.zip glibc-8f8b76f08b79f52bd491057dfc1de84e2d3803ae.tar.gz glibc-8f8b76f08b79f52bd491057dfc1de84e2d3803ae.tar.bz2 |
Remove __THROW from cancellation points.
-rw-r--r-- | linuxthreads/semaphore.h | 5 | ||||
-rw-r--r-- | linuxthreads/sysdeps/pthread/pthread.h | 8 |
2 files changed, 6 insertions, 7 deletions
diff --git a/linuxthreads/semaphore.h b/linuxthreads/semaphore.h index 9c283c8..7b09ea9 100644 --- a/linuxthreads/semaphore.h +++ b/linuxthreads/semaphore.h @@ -64,13 +64,12 @@ extern int sem_close (sem_t *__sem) __THROW; extern int sem_unlink (__const char *__name) __THROW; /* Wait for SEM being posted. */ -extern int sem_wait (sem_t *__sem) __THROW; +extern int sem_wait (sem_t *__sem); #ifdef __USE_XOPEN2K /* Similar to `sem_wait' but wait only until ABSTIME. */ extern int sem_timedwait (sem_t *__restrict __sem, - __const struct timespec *__restrict __abstime) - __THROW; + __const struct timespec *__restrict __abstime); #endif /* Test whether SEM is posted. */ diff --git a/linuxthreads/sysdeps/pthread/pthread.h b/linuxthreads/sysdeps/pthread/pthread.h index efaf851..95a10cb 100644 --- a/linuxthreads/sysdeps/pthread/pthread.h +++ b/linuxthreads/sysdeps/pthread/pthread.h @@ -582,19 +582,19 @@ extern int pthread_once (pthread_once_t *__once_control, /* Set cancelability state of current thread to STATE, returning old state in *OLDSTATE if OLDSTATE is not NULL. */ -extern int pthread_setcancelstate (int __state, int *__oldstate) __THROW; +extern int pthread_setcancelstate (int __state, int *__oldstate); /* Set cancellation state of current thread to TYPE, returning the old type in *OLDTYPE if OLDTYPE is not NULL. */ -extern int pthread_setcanceltype (int __type, int *__oldtype) __THROW; +extern int pthread_setcanceltype (int __type, int *__oldtype); /* Cancel THREAD immediately or at the next possibility. */ -extern int pthread_cancel (pthread_t __cancelthread) __THROW; +extern int pthread_cancel (pthread_t __cancelthread); /* Test for pending cancellation for the current thread and terminate the thread as per pthread_exit(PTHREAD_CANCELED) if it has been cancelled. */ -extern void pthread_testcancel (void) __THROW; +extern void pthread_testcancel (void); /* Install a cleanup handler: ROUTINE will be called with arguments ARG |