Changeset 13251 for trunk/FACT++


Ignore:
Timestamp:
03/27/12 23:11:34 (12 years ago)
Author:
tbretz
Message:
Encapsulated the waiting for a state into proper switching off and on of the output stream buffer.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/RemoteControl.h

    r13208 r13251  
    207207            const Time timeout = ms<=0 ? Time(Time::none) : Time()+boost::posix_time::millisec(ms);
    208208
     209            T::GetSteamOut().Display(true);
     210            T::GetStreamOut().SetBacklog(false);
     211            T::GetStreamOut().SetNullOutput(false);
    209212            while (l->second->GetState()!=state && timeout>Time())
    210213                usleep(1);
     214            T::GetStreamOut().SetNullOutput(true);
     215            T::GetStreamOut().SetBacklog(true);
    211216
    212217            if (l->second->GetState()!=state)
Note: See TracChangeset for help on using the changeset viewer.