cond_signal()
Signal a process that is blocked on a condition wait.
Syntax
Parameters
Parameter | Definition |
---|---|
variable | name of the variable that will unblock a process blocked by thecond_wait() function |
all | non-NULL value that directs the cond_signal() function to unblock all PSL processes that are blocked waiting for variable |
Description
The cond_signal() function can signal another PSL process that is currently blocked for a cond_wait() function onvariable. If all is specified and is not the NULL string, the cond_signal() function will wake all PSL processes that are blocked on variable. If no processes are blocked on variable, the cond_signal() function has no effect. Thecond_signal() function can never block and always returns the NULL string.
Example
The following cond_signal() function signals all processes waiting for CV1 to unblock after the process PASSWD_LCK unlocks:
cond_signal("CV1");