prev   Menu   next

Synchronization

SIGNAL a_signal_name
Sets the signal nemad a_signal_name on.
WAIT EVENT a_signal_name
waits until the signal nemed a_signal_name is set on and then turns the signal off.

SIGNAL statments do not wait for the signal to turn off.
EXAMPLE. The following works good.

PARACT p1
PUT TO share1 FROM ……
SIGNAL Ready1
WAIT EVENT Ready2
GET FROM share2 TO ……
END PARACT

PARACT p2
PUT TO share2 FROM ……
SIGNAL Ready2
WAIT EVENT Ready1
GET FROM share1 TO ……
END PARACT