cRoot: Make PollPeriod representation 32 bit (#4030)
This commit is contained in:
parent
491e91dc88
commit
8835bf344d
@ -87,10 +87,8 @@ void cRoot::InputThread(cRoot & a_Params)
|
|||||||
while (a_Params.m_InputThreadRunFlag.test_and_set() && std::cin.good())
|
while (a_Params.m_InputThreadRunFlag.test_and_set() && std::cin.good())
|
||||||
{
|
{
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
static const std::chrono::microseconds PollPeriod = std::chrono::milliseconds{ 100 };
|
|
||||||
|
|
||||||
timeval Timeout{ 0, 0 };
|
timeval Timeout{ 0, 0 };
|
||||||
Timeout.tv_usec = static_cast<long>(PollPeriod.count());
|
Timeout.tv_usec = 100 * 1000; // 100 msec
|
||||||
|
|
||||||
fd_set ReadSet;
|
fd_set ReadSet;
|
||||||
FD_ZERO(&ReadSet);
|
FD_ZERO(&ReadSet);
|
||||||
|
Loading…
Reference in New Issue
Block a user