diff options
Diffstat (limited to 'winsup/cygwin/pthread.cc')
-rw-r--r-- | winsup/cygwin/pthread.cc | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/winsup/cygwin/pthread.cc b/winsup/cygwin/pthread.cc index 7d8ca1a..ab7fd1f 100644 --- a/winsup/cygwin/pthread.cc +++ b/winsup/cygwin/pthread.cc @@ -218,7 +218,7 @@ pthread_sigmask (int operation, const sigset_t * set, sigset_t * old_set) pthread_t pthread_self () { - return __pthread_self (); + return pthread::self(); } int @@ -425,8 +425,6 @@ pthread_cancel (pthread_t thread) return __pthread_cancel (thread); } - - int pthread_setcancelstate (int state, int *oldstate) { @@ -445,6 +443,18 @@ pthread_testcancel (void) __pthread_testcancel (); } +void +_pthread_cleanup_push (__pthread_cleanup_handler *handler) +{ + pthread::self()->push_cleanup_handler(handler); +} + +void +_pthread_cleanup_pop (int execute) +{ + pthread::self()->pop_cleanup_handler (execute); +} + /* Semaphores */ int sem_init (sem_t * sem, int pshared, unsigned int value) |