Class Gate
Placement in the overall structure
- Module
- guard
- Base classes
- Chain
- Derived classes
- Keyboard
- Panic
- Time of creation
- Task 2
- Modified in
- Task 3
- Files
gate.h
Description
The abstract class Gate
is the basis of the interrupt handling.
The classes of all objects to be registered in the
Plugbox
must be derived from
Gate
and define the virtual method prologue ()
.
An empty implementation can be specified in Gate
for the
epilogue ()
virtual method, so derived classes
do not necessarily have to define an epilogue. To determine whether
a Gate
object has already been added to the epilogue queue,
you should include a corresponding Boolean attribute in the class that
can be set and read by access functions.
Public methods
virtual bool prologue ()
- Interrupt-handler routine that is executed immediately after the interrupt occurs, asynchronously to other kernel activities. The return value signals whether the epilogue should be executed.
virtual void epilogue ()
- Potentially delayed and synchronously executed interrupt handler.
void queued (bool q)
- Sets a flag that remembers whether the epilogue is enqueued.
bool queued ()
- Checks whether the epilogue is enqueued.