Create an intra-process mutex.
Note: This routine is not supported in JVM COBOL.
Syntax:
call "CBL_MUTEX_OPEN_INTRA" using by reference mutex-handle
by value open-flags
Parameters:
|
Using call prototype (see
Key)
|
Picture
|
mutex-handle
|
cblt-pointer.
|
usage pointer.
|
open-flags
|
cblt-os-flags.
|
pic x(4) comp-5
or
pic x(8) comp-5 (64-bit native programs only)
|
On Entry:
-
open-flags
- A value that determines how the mutex is to be opened:
- Bit 0
-
0
|
Mutex is not acquired by the current thread at creation.
|
1
|
Mutex is acquired by the current thread at creation.
|
- Remaining bits
- Reserved. Set to zero
Comments:
mutex-handle is local to the process.