z/OS Using REXX and z/OS UNIX System Services
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


shmlkobtain

z/OS Using REXX and z/OS UNIX System Services
SA23-2283-00

Read syntax diagramSkip visual syntax diagram
>>-shmlkobtain--locktokenvar--shared---------------------------><

Function

shmlkobtain obtains a shared memory lock

Parameters

locktokvar
The variable that contains the lock token.
shared
0
Obtain exclusive.
1
Obtain shared.

Example

'shmlkobtain lk 0'

Usage notes

Upon return, RETVAL contains -1 if the service failed. Otherwise, it contains the count of the number of times the calling thread has the lock held.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014