summaryrefslogtreecommitdiff
path: root/pthread.h
diff options
context:
space:
mode:
authorrpj <rpj>2001-02-09 06:51:30 +0000
committerrpj <rpj>2001-02-09 06:51:30 +0000
commit1648c7a97f27d10ad302c6141562ece01065e1d7 (patch)
treec16f939acf7ac98db38039d747f5804d04c33fe1 /pthread.h
parent2b3eede0b834a82c7dce5ec328f3929c0effc536 (diff)
Remodeled mutex routines again to eliminate critical sections.
Diffstat (limited to 'pthread.h')
-rw-r--r--pthread.h18
1 files changed, 14 insertions, 4 deletions
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,10 +793,19 @@ 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.