Get value of named or unnamed sempahore.
Returns the current semaphore value. Returns E_SYSTEM
on error.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(sem_named_type), | intent(inout) | :: | sem |
Semaphore type. |
||
integer, | intent(out) | :: | value |
Returned value. |
Returns the current semaphore value. Returns E_SYSTEM
on error.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(sem_unnamed_type), | intent(inout), | target | :: | sem |
Semaphore type. |
|
integer, | intent(out) | :: | value |
Returned value. |