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. --- README.NONPORTABLE | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'README.NONPORTABLE') 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); -- cgit v1.2.3