• Home
  • Raw
  • Download

Lines Matching full:trigger

42   // The context for the trigger which tripped the trap.
48 // |MOJO_RESULT_OK|: The trigger's conditions were met.
49 // |MOJO_RESULT_FAILED_PRECONDITION|: The trigger's observed handle has
50 // changed state in such a way that the trigger's conditions can never
52 // |MOJO_RESULT_CANCELLED|: The trigger has been removed and will never
54 // a trigger and it will fire when: the trigger is explicitly removed
55 // with |MojoRemoteTrigger()|, the trigger's owning trap handle is
56 // closed, or the handle observed by the trigger is closed.
62 // The last known signalling state of the trigger's observed handle at the
72 // |MOJO_TRIGGER_CONDITION_SIGNALS_UNSATISFIED| - A trigger added with this
187 // the traps |MojoTrapEventHandler| is invoked once for every relevant trigger.
191 // ** An unarmed trap will still fire an event when a trigger is removed. This
209 // Adds a trigger to a trap. This configures the trap to invoke its event
213 // Note that event handler invocations for a given trigger are mutually
214 // exclusive in execution: the handler will never be entered for a trigger while
215 // another thread is executing it for the same trigger. Similarly, event
221 // |trap_handle|: The trap to which this trigger is to be added.
222 // |handle|: The handle whose signals this trigger will observe. Must be a
224 // |signals|: The specific signal(s) this trigger will observe on |handle|.
225 // |condition|: The signaling condition this trigger will observe. i.e.
229 // handler when this trigger was responsible for tripping the trap. See
236 // |MOJO_RESULT_OK| if the handle is now being observed by the trigger.
240 // |MOJO_RESULT_ALREADY_EXISTS| if the trap already has a trigger associated
250 // Removes a trigger from a trap.
252 // This ensures that the trigger is removed as soon as possible. Removal may
259 // associated with this trigger, or by closing |trap_handle| itself.
262 // |trap_handle|: The handle of the trap from which to remove a trigger.
263 // |context|: The context of the trigger to be removed.
266 // |MOJO_RESULT_OK| if the trigger has been removed.
268 // |MOJO_RESULT_NOT_FOUND| if there is no trigger registered on this trap for