Guardian Procedure Calls Reference Manual (G06.25+)
Guardian Procedure Calls (A-B)
Guardian Procedure Calls Reference Manual—522629-013
2-61
BINSEM_FORCELOCK_ Procedure
BINSEM_FORCELOCK_ Procedure
Summary
Syntax for C Programmers
Parameters
Considerations
Example
Related Programming Manuals
Summary
The BINSEM_FORCELOCK_ procedure forces a lock on a binary semaphore. This
procedure is used when it is not possible to lock a binary semaphore with the
BINSEM_LOCK_ procedure.
Syntax for C Programmers
•
Syntax for TAL Programmers
Parameters
status returned value
INT
indicates the outcome of the call:
0 No error.
22 Bounds error. The
processhandle parameter cannot be written to by
the calling process.
4022 Invalid parameter. The
semid parameter does not identify a binary
semaphore that is opened by the calling process. The corresponding
errno value is EINVAL.
#include <cextdecs(BINSEM_FORCELOCK_)>
short BINSEM_FORCELOCK_ ( __int32_t semid
,short *processhandle );
status := BINSEM_FORCELOCK_ ( semid !
i
,processhandle ); !
o