launch_daemon: Implemented sticky events, and registration.
* Sticky events are events that keep their signal raised, ie. even if a job is initialized afterwards, it will still be triggered. * Consolidated naming for external events. * Events are now registered once they are actually being used. This allows them to allocate the resources they need to do their thing.
This commit is contained in:
@@ -211,8 +211,13 @@ on {
|
||||
|
||||
The latter form can be used to solve ambiguous event definitions.
|
||||
|
||||
By specifying the \c B_STICKY_EVENT flag, you can mark the event as being
|
||||
a permanent change. Once triggered, such an event will stay triggered, ie.
|
||||
even new targets or jobs will consider it triggered.
|
||||
|
||||
\param source The messenger the event is coming from.
|
||||
\param name The name of the event.
|
||||
\param flags Flags for the event as described.
|
||||
\return B_OK if the event could be registered, otherwise an error code.
|
||||
|
||||
\since Haiku R1
|
||||
|
||||
Reference in New Issue
Block a user