[Prev] [Contents] [Next]

pthread_unlock_global_np()--Unlock a Global Mutex

Syntax

#include <pthread.h>
#include <sched.h>
int pthread_lock_global_np(void);
Threadsafe: Yes
Signal Safe: Yes

The pthread_unlock_global_np() function unlocks a global mutex provided by the pthreads run-time. The global mutex is a recursive mutex with a name of "QP0W_GLOBAL_MTX". The global mutex is not currently used by the pthreads run-time to serialize access to any system resources, and is provided for application use only.

This function is not portable

Parameters

None.

Authorities and Locks

For successful completion, the global mutex lock must be held prior to calling pthread_unlock_global_np().

Return Value

0
pthread_unlock_global_np() was successful.
value
pthread_unlock_global_np() was not successful. value is set to indicate the error condition.

Error Conditions

If pthread_unlock_global_np() was not successful, the error condition returned usually indicates one of the following errors. Under some conditions, the value returned could indicate an error other than those listed here.

[EINVAL]
The value specified for the argument is not correct.
[EPERM]
The mutex is not currently held by the caller.

Related Information

Example

See the pthread_lock_global_np() example.



[Prev] [Contents] [Next]
Copyright © 1998, IBM Corporation. All rights reserved.
Comments? Contact
rchthrds@us.ibm.com