diff options
author | Robert Collins <rbtcollins@hotmail.com> | 2002-09-21 03:59:58 +0000 |
---|---|---|
committer | Robert Collins <rbtcollins@hotmail.com> | 2002-09-21 03:59:58 +0000 |
commit | 01f58e415cffeee5675b9cdc842df41fa0d12596 (patch) | |
tree | e9e61c664629570cc32d5dbc4176e047405dc9fb /winsup/cygwin/pthread.cc | |
parent | af428c1ef4e90fafd6d2b98065ce4595bcd8f61b (diff) | |
download | cygnal-01f58e415cffeee5675b9cdc842df41fa0d12596.tar.gz cygnal-01f58e415cffeee5675b9cdc842df41fa0d12596.tar.bz2 cygnal-01f58e415cffeee5675b9cdc842df41fa0d12596.zip |
2002-09-21 Robert Collins <rbtcollins@hotmail.com>
* pthread.cc: Use class::call for converted pthread and semaphore
calls.
* thread.cc: Convert various __pthread_call and __sem_call to
pthread::call and sem::call throughout.
* pthread.h (__pthread_cancel): Convert to pthread::cancel.
(__pthread_join): Convert to pthread::join.
(__pthread_detach): Convert to pthread::detach.
(__pthread_create): Convert to pthread::create.
(__pthread_once): Convert to pthread::once.
(__pthread_atfork): Convert to pthread::atfork.
(__pthread_suspend): Convert to pthread::suspend.
(__pthread_continue): Convert to pthread::resume.
(__sem_init): Convert to semaphore::init.
(__sem_destroy): Convert to semaphore::destroy.
(__sem_wait): Convert to semaphore::wait.
(__sem_trywait): Convert to semaphore::trywait.
(__sem_post): Convert to semaphore::post.
Diffstat (limited to 'winsup/cygwin/pthread.cc')
-rw-r--r-- | winsup/cygwin/pthread.cc | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/winsup/cygwin/pthread.cc b/winsup/cygwin/pthread.cc index 90eb20f25..810fd1f20 100644 --- a/winsup/cygwin/pthread.cc +++ b/winsup/cygwin/pthread.cc @@ -21,19 +21,19 @@ int pthread_create (pthread_t * thread, const pthread_attr_t * attr, void *(*start_routine) (void *), void *arg) { - return __pthread_create (thread, attr, start_routine, arg); + return pthread::create (thread, attr, start_routine, arg); } int pthread_once (pthread_once_t * once_control, void (*init_routine) (void)) { - return __pthread_once (once_control, init_routine); + return pthread::once (once_control, init_routine); } int pthread_atfork(void (*prepare)(void), void (*parent)(void), void (*child)(void)) { - return __pthread_atfork(prepare, parent, child); + return pthread::atfork(prepare, parent, child); } int @@ -147,13 +147,13 @@ pthread_exit (void *value_ptr) int pthread_join (pthread_t thread, void **return_val) { - return __pthread_join (&thread, (void **) return_val); + return pthread::join (&thread, (void **) return_val); } int pthread_detach (pthread_t thread) { - return __pthread_detach (&thread); + return pthread::detach (&thread); } @@ -161,14 +161,14 @@ pthread_detach (pthread_t thread) int pthread_suspend (pthread_t thread) { - return __pthread_suspend (&thread); + return pthread::suspend (&thread); } /* same */ int pthread_continue (pthread_t thread) { - return __pthread_continue (&thread); + return pthread::resume (&thread); } unsigned long @@ -425,7 +425,7 @@ pthread_setschedparam (pthread_t thread, int policy, int pthread_cancel (pthread_t thread) { - return __pthread_cancel (thread); + return pthread::cancel (thread); } int @@ -462,31 +462,31 @@ _pthread_cleanup_pop (int execute) int sem_init (sem_t * sem, int pshared, unsigned int value) { - return __sem_init (sem, pshared, value); + return semaphore::init (sem, pshared, value); } int sem_destroy (sem_t * sem) { - return __sem_destroy (sem); + return semaphore::destroy (sem); } int sem_wait (sem_t * sem) { - return __sem_wait (sem); + return semaphore::wait (sem); } int sem_trywait (sem_t * sem) { - return __sem_trywait (sem); + return semaphore::trywait (sem); } int sem_post (sem_t * sem) { - return __sem_post (sem); + return semaphore::post (sem); } } |