#include <synchconsole.h>
Inheritance diagram for SynchConsoleInput::

Public Methods | |
| SynchConsoleInput (char *inputFile) | |
| Initialize the console device. More... | |
| ~SynchConsoleInput () | |
| Deallocate console device. More... | |
| char | GetChar () |
| Read a character, waiting if necessary. More... | |
Private Methods | |
| void | CallBack () |
| called when a keystroke is available. More... | |
Private Attributes | |
| ConsoleInput* | consoleInput |
| the hardware keyboard. More... | |
| Lock* | lock |
| only one reader at a time. More... | |
| Semaphore* | waitFor |
| wait for callBack. More... | |
Definition at line 23 of file synchconsole.h.
|
|
Initialize the console device. SynchConsoleInput::SynchConsoleInput Initialize synchronized access to the keyboard "inputFile" -- if NULL, use stdin as console device otherwise, read from this file Definition at line 20 of file synchconsole.cc. |
|
|
Deallocate console device. SynchConsoleInput::~SynchConsoleInput Deallocate data structures for synchronized access to the keyboard Definition at line 32 of file synchconsole.cc. |
|
|
called when a keystroke is available. SynchConsoleInput::CallBack Interrupt handler called when keystroke is hit; wake up anyone waiting. Reimplemented from CallBackObj. Definition at line 64 of file synchconsole.cc. |
|
|
Read a character, waiting if necessary. SynchConsoleInput::GetChar Read a character typed at the keyboard, waiting if necessary. Definition at line 45 of file synchconsole.cc. Referenced by UserProgKernel::SelfTest().
|
|
|
the hardware keyboard.
Definition at line 31 of file synchconsole.h. |
|
|
only one reader at a time.
Definition at line 32 of file synchconsole.h. |
|
|
wait for callBack.
Definition at line 33 of file synchconsole.h. |
1.2.8.1 written by Dimitri van Heesch,
© 1997-2001