Changeset 10663 for trunk/FACT++/src


Ignore:
Timestamp:
05/11/11 14:53:16 (14 years ago)
Author:
tbretz
Message:
Changed the logic of dumping the two output buffers.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/Console.cc

    r10498 r10663  
    105105    Readline::Startup();
    106106
    107     // Flush the buffer and remove the flushed contents from the buffer
     107    // First flush the buffer of the stream which is synchronous
     108    // with the prompt
     109    fLogI.Display(true);
     110
     111    // Now flush the stream which is asychronous
    108112    fLogO.Display(true);
    109     fLogI.Display(true);
     113
     114    // The order has the advantage that output initiated by the prompt
     115    // is not interrupter by the synchronous stream
    110116}
    111117
     
    159165
    160166    // flush buffer to display
     167    fLogI.Display(true);
    161168    fLogO.Display(true);
    162     fLogI.Display(true);
    163169}
Note: See TracChangeset for help on using the changeset viewer.