Resetting an Event

The reset statement changes the happened state of an event to NOT HAPPENED. This statement makes it possible to reuse an event after it has been caused. If the event is not reset after it is caused, then any processes that try to wait on the event will continue immediately instead of waiting.

The following ALGOL statement resets the event EDATA:

RESET (EDATA);

The following COBOL statement resets two events:

RESET EDATA, ECONTROL.

You can also reset the happened state with the statements discussed under Causing and Resetting an Event earlier in this section or Waiting on and Resetting an Event later in this section.