Important

   

This documentation space contains information about PATROL Agents when deployed in a TrueSight Operations Management environment. If you are a BMC Helix Operations Management user, see PATROL Agent 22.1 for BMC Helix Operations Management. Open link

cond_signal()

Signal a process that is blocked on a condition wait.

Syntax

cond_signal(variable,[all])

Parameters

ParameterDefinition

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:

unlock("PASSWD_LCK");
cond_signal("CV1");
Was this page helpful? Yes No Submitting... Thank you

Comments