1
0
Fork 0

cRoot: Make PollPeriod representation 32 bit (#4030)

This commit is contained in:
peterbell10 2017-09-19 14:14:44 +01:00 committed by Alexander Harkness
parent 491e91dc88
commit 8835bf344d
1 changed files with 1 additions and 3 deletions

View File

@ -87,10 +87,8 @@ void cRoot::InputThread(cRoot & a_Params)
while (a_Params.m_InputThreadRunFlag.test_and_set() && std::cin.good())
{
#ifndef _WIN32
static const std::chrono::microseconds PollPeriod = std::chrono::milliseconds{ 100 };
timeval Timeout{ 0, 0 };
Timeout.tv_usec = static_cast<long>(PollPeriod.count());
Timeout.tv_usec = 100 * 1000; // 100 msec
fd_set ReadSet;
FD_ZERO(&ReadSet);