NAME
RCU::Event - Event-based RCU operation
SYNOPSIS
use RCU::Event;
$rcu = connect RCU::Event "interfac-spec", [initial-context]
DESCRIPTION
This module provides a superset of the standard RCU interface by adding an event-based interface. Basically, you create one or more contexts (See RCU::Context) and bind it to a RCU::Event object. All key events will then be directed to the current context.
- $ctx = connect RCU::Event "interface-desc";
-
Create a new RCU interface. The functionality is the same as RCU, with the functions added below.
- $rcu->inject(key)
-
Act as if key
keywas pressed (keystarts with "=") or released (whenkeystarts with~). This is rarely used but is useful to "simulate" key presses. - $rcu->set_context(new_context)
-
Leave the current context (if any) and enter the
new_context, to which all new events are directed to. - $rcu->push_context(new_context)
-
Enter the given
new_contextwithout leaving the current one. - $rcu->pop_context
-
Leave the current context and restore the previous context that was saved in
push_context.
SEE ALSO
RCU.
AUTHOR
This perl extension was written by Marc Lehmann <schmorp@schmorp.de>.