Reputation: 125
I need a function equivalent to Doevents() in c++ on linux. I found the equivalent of this function in c++ but nothing works in linux, they are using Windows.h.
doevents-equivalent-for-c and Doevents() in c++
I need it for this function:
void FTDI_Mgt::waitN_Milliseconds(int _msec)
{
if (_msec < 1)
{
return;
}
auto _desired = std::chrono::steady_clock::now() + std::chrono::milliseconds(_msec);
while (std::chrono::steady_clock::now() < _desired)
{
DoEvents();
}
}
I'm stuck, could you help please?
Upvotes: 0
Views: 169