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

Public Methods | |
| SynchConsoleOutput (char *outputFile) | |
| Initialize the console device. More... | |
| ~SynchConsoleOutput () | |
| void | PutChar (char ch) |
| Write a character, waiting if necessary. More... | |
Private Methods | |
| void | CallBack () |
| called when a keystroke is available. More... | |
Private Attributes | |
| ConsoleOutput* | consoleOutput |
| the hardware display. More... | |
| Lock* | lock |
| only one writer at a time. More... | |
| Semaphore* | waitFor |
| wait for callBack. More... | |
Definition at line 41 of file synchconsole.h.
|
|
Initialize the console device. SynchConsoleOutput::SynchConsoleOutput Initialize synchronized access to the console display "outputFile" -- if NULL, use stdout as console device otherwise, read from this file Definition at line 77 of file synchconsole.cc. |
|
|
SynchConsoleOutput::~SynchConsoleOutput Deallocate data structures for synchronized access to the keyboard Definition at line 89 of file synchconsole.cc. |
|
|
called when a keystroke is available. SynchConsoleOutput::CallBack Interrupt handler called when it's safe to send the next character can be sent to the display. Reimplemented from CallBackObj. Definition at line 117 of file synchconsole.cc. |
|
|
Write a character, waiting if necessary. SynchConsoleOutput::PutChar Write a character to the console display, waiting if necessary. Definition at line 102 of file synchconsole.cc. Referenced by UserProgKernel::SelfTest().
|
|
|
the hardware display.
Definition at line 49 of file synchconsole.h. |
|
|
only one writer at a time.
Definition at line 50 of file synchconsole.h. |
|
|
wait for callBack.
Definition at line 51 of file synchconsole.h. |
1.2.8.1 written by Dimitri van Heesch,
© 1997-2001