From 1648c7a97f27d10ad302c6141562ece01065e1d7 Mon Sep 17 00:00:00 2001 From: rpj Date: Fri, 9 Feb 2001 06:51:30 +0000 Subject: Remodeled mutex routines again to eliminate critical sections. --- pthread.h | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'pthread.h') diff --git a/pthread.h b/pthread.h index d12bc41..e40aaef 100644 --- a/pthread.h +++ b/pthread.h @@ -631,10 +631,10 @@ int pthread_attr_setschedparam (pthread_attr_t *attr, const struct sched_param *param); int pthread_attr_setscope (pthread_attr_t *, - int); + int); int pthread_attr_getscope (const pthread_attr_t *, - int *); + int *); /* * PThread Functions @@ -793,9 +793,18 @@ int pthread_rwlock_unlock(pthread_rwlock_t *lock); * Non-portable functions */ -/* Possibly supported by other POSIX threads implimentations */ +/* + * Possibly supported by other POSIX threads implimentations + */ int pthread_delay_np (struct timespec * interval); +/* + * Remaps the default mutex type to any of the + * other possible types. Returns the previous type. + */ +int pthread_mutex_setdefaulttype_np (int newtype, + int * oldtype); + /* * Returns the Win32 thread HANDLE associated * with the given POSIX thread. @@ -828,7 +837,8 @@ int pthread_win32_thread_detach_np(void); * WaitForMultipleObjects. */ int pthreadCancelableWait (HANDLE waitHandle); -int pthreadCancelableTimedWait (HANDLE waitHandle, DWORD timeout); +int pthreadCancelableTimedWait (HANDLE waitHandle, + DWORD timeout); /* * Thread-Safe C Runtime Library Mappings. -- cgit v1.2.3