POSIX mutex abstraction layer. Has to be linked with -lpthread.
Opaque mutex type.
Creates a new mutex. Returns E_SYSTEM on error.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(mutex_type), | intent(inout) | :: | mutex | 
 Mutex type.  | 
        
Destroys mutex. Returns E_SYSTEM on error.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(mutex_type), | intent(inout) | :: | mutex | 
 Mutex type.  | 
        
Returns .true. if mutex is locked.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(mutex_type), | intent(inout) | :: | mutex | 
 Mutex type.  | 
        
Locks mutex. Returns E_SYSTEM on error.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(mutex_type), | intent(inout) | :: | mutex | 
 Mutex type.  | 
        
Tries to lock mutex. Returns E_SYSTEM on error.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(mutex_type), | intent(inout) | :: | mutex | 
 Mutex type.  | 
        
Unlocks mutex. Returns E_SYSTEM on error.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(mutex_type), | intent(inout) | :: | mutex | 
 Mutex type.  |