Skip to content

Commit ba6fe1e

Browse files
authored
Merge branch '0.10' into 0.10-clang-latest
2 parents a0c9954 + 2a98331 commit ba6fe1e

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Contributors:
2121
Masaki Muranaka, various patches
2222
Nicolas, for the win32 port of libartnet
2323
Nils Van Zuijlen, typos and python lib small update
24+
Perry Naseck, EPoll delay fix
2425
Peter Newman, MilInst Plugin, Scanlime Fadecandy support and numerous fixes
2526
Ravindra Nath Kakarla, RDM Test Server (Google Summer of Code 2012)
2627
Rowan Maclachlan (hippy) for various changes

common/io/EPoller.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,8 +311,10 @@ bool EPoller::Poll(TimeoutManager *timeout_manager,
311311
}
312312

313313
int ms_to_sleep = sleep_interval.InMilliSeconds();
314+
// If we haven't been asked to wait as part of the poll interval, then don't
315+
// wait in the epoll to allow for fast streaming
314316
int ready = epoll_wait(m_epoll_fd, reinterpret_cast<epoll_event*>(&events),
315-
MAX_EVENTS, ms_to_sleep ? ms_to_sleep : 1);
317+
MAX_EVENTS, ms_to_sleep ? ms_to_sleep : 0);
316318

317319
if (ready == 0) {
318320
m_clock->CurrentMonotonicTime(&m_wake_up_time);

0 commit comments

Comments
 (0)