MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / CSleep

Function CSleep

src/thread.h:24–27  ·  view source on GitHub ↗

* Sleep on the current thread for a defined time. * @param milliseconds Time to sleep for in milliseconds. */

Source from the content-addressed store, hash-verified

22 * @param milliseconds Time to sleep for in milliseconds.
23 */
24inline void CSleep(int milliseconds)
25{
26 std::this_thread::sleep_for(std::chrono::milliseconds(milliseconds));
27}
28
29/**
30 * Name the thread this function is called on for the debugger.

Callers 3

CloseConnectionMethod · 0.85
KillWaitFunction · 0.85
SetAsyncSaveFinishFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected