From 99e8ecc5759668fd3af379eaddd70b4ae50ecd7f Mon Sep 17 00:00:00 2001 From: rpj Date: Thu, 5 Jul 2001 11:57:32 +0000 Subject: Added new routines from POSIX 1003.1j. This is alpha level code. * spin.c: New module implementing spin locks. * barrier.c: New module implementing barriers. * pthread.h (_POSIX_SPIN_LOCKS): defined. (_POSIX_BARRIERS): Defined. (pthread_spin_*): Defined. (pthread_barrier*): Defined. (PTHREAD_BARRIER_SERIAL_THREAD): Defined. * implement.h (pthread_spinlock_t_): Defined. (pthread_barrier_t_): Defined. (pthread_barrierattr_t_): Defined. * mutex.c (pthread_mutex_lock): Return with the error if an auto-initialiser initialisation fails. * nonportable.c (pthread_getprocessors_np): New; gets the number of available processors for the current process. --- pthread.def | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) (limited to 'pthread.def') diff --git a/pthread.def b/pthread.def index 9ca0cbd..53c2b27 100644 --- a/pthread.def +++ b/pthread.def @@ -1,12 +1,11 @@ ; pthread.def -; Last updated: $Date: 2001/07/01 14:35:50 $ +; Last updated: $Date: 2001/07/05 11:57:32 $ ; Currently unimplemented functions are commented out. ;LIBRARY pthread EXPORTS -ptw32_processInitialize ;pthread_atfork pthread_attr_destroy pthread_attr_getdetachstate @@ -109,6 +108,24 @@ pthread_rwlock_rdlock pthread_rwlock_wrlock pthread_rwlock_unlock ; +; Spin locks +; +pthread_spin_init +pthread_spin_destroy +pthread_spin_lock +pthread_spin_unlock +pthread_spin_trylock +; +; Barriers +; +pthread_barrier_init +pthread_barrier_destroy +pthread_barrier_wait +pthread_barrierattr_init +pthread_barrierattr_destroy +pthread_barrierattr_getpshared +pthread_barrierattr_setpshared +; ; Non-portable/compatibility with other implementations ; pthread_delay_np @@ -118,9 +135,12 @@ pthread_mutexattr_setkind_np ; Non-portable local implementation only ; pthread_getw32threadhandle_np +pthread_getprocessors_np pthreadCancelableWait pthreadCancelableTimedWait +; ; For use when linking statically +; pthread_win32_process_attach_np pthread_win32_process_detach_np pthread_win32_thread_attach_np -- cgit v1.2.3