summaryrefslogtreecommitdiff
path: root/README.NONPORTABLE
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 /README.NONPORTABLE
parent2b3eede0b834a82c7dce5ec328f3929c0effc536 (diff)
Remodeled mutex routines again to eliminate critical sections.
Diffstat (limited to 'README.NONPORTABLE')
-rw-r--r--README.NONPORTABLE31
1 files changed, 31 insertions, 0 deletions
diff --git a/README.NONPORTABLE b/README.NONPORTABLE
index 7dfba7f..8319853 100644
--- a/README.NONPORTABLE
+++ b/README.NONPORTABLE
@@ -40,6 +40,37 @@ pthread_delay_np (const struct timespec *interval);
0 Successful completion.
[EINVAL] The value specified by interval is invalid.
+int
+pthread_mutex_setdefaulttype_np (int newtype, int * oldtype);
+
+ The routine sets the default type to be given to all
+ POSIX mutexes initialised after the function
+ is called. Any of the following type values
+ can be made the default type:
+
+ PTHREAD_MUTEX_NORMAL
+ PTHREAD_MUTEX_ERRORCHECK
+ PTHREAD_MUTEX_RECURSIVE
+ PTHREAD_MUTEX_DEFAULT
+
+ Any mutex initialised with type PTHREAD_MUTEX_DEFAULT
+ will be set to the mapped type instead. Previously
+ initialised mutexes are not changed.
+
+ When set to PTHREAD_MUTEX_DEFAULT (the initial
+ value), mutexes will behave as for the
+ PTHREAD_MUTEX_RECURSIVE type.
+
+ If 'oldtype' is a non-NULL pointer, the previous type is
+ returned through it.
+ To get the previous type without setting a new type,
+ use -1 as the 'newtype' value.
+
+ Return Values
+
+ 0 Successfully changed to new type.
+ [EINVAL] New type isn't valid.
+
BOOL
pthread_win32_process_attach_np (void);