Luna::new_signal

Ref< ISignal > new_signal(bool manual_reset)

Create a new signal object.

Parameters

  • in manual_reset

    If we need to manually reset the trigger state of the signal object. If set to false, the signal will be automatically reset to not triggered state when a single thread that waiting for this signal is passed. If set to true, user needs to manually reset the state by calling ISignal::reset.

Return value

Returns the new created signal object.