Changeset 16774 for trunk


Ignore:
Timestamp:
06/08/13 12:28:58 (11 years ago)
Author:
tbretz
Message:
After five minutes of inactivity, sleep 10ms instead of 1us if all idle conditions are fullfilled.
File:
1 edited

Legend:

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

    r16691 r16774  
    13521352#if !defined(USE_SELECT) && !defined(USE_EPOLL) && !defined(USE_POLL)
    13531353            if (evtCtrl.empty())
    1354                 usleep(1);
     1354                usleep(actTime-actrun->lastTime>300 ? 10000 : 1);
    13551355#endif
    13561356            continue;
Note: See TracChangeset for help on using the changeset viewer.