vagetablechicken commented on issue #3204: usleep() is obsolete, and may be set 
the wrong interval by integer overflow
URL: 
https://github.com/apache/incubator-doris/issues/3204#issuecomment-604334778
 
 
   > The usual C++11 std::this_thread::sleep_for is not high resolution sleep. 
   
   Many people say so. I haven't tested about it.  But refer to KUDU, using 
SleepFor() in monotime.h is a good choice.
   
https://github.com/apache/incubator-doris/blob/9ee1704859c1f890e3993d11ce606c166ac74ba0/be/src/util/monotime.h#L243-L253

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to