You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2020/03/26 09:56:10 UTC

[GitHub] [incubator-doris] vagetablechicken commented on issue #3204: usleep() is obsolete, and may be set the wrong interval by integer overflow

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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org