MCPcopy Create free account
hub / github.com/abbeycode/UnrarKit / Wait

Function Wait

Libraries/unrar/system.cpp:80–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78
79
80void Wait()
81{
82 if (ErrHandler.UserBreak)
83 ErrHandler.Exit(RARX_USERBREAK);
84#if defined(_WIN_ALL) && !defined(SFX_MODULE)
85 if (SleepTime!=0)
86 {
87 static clock_t LastTime=MonoClock();
88 if (MonoClock()-LastTime>10*CLOCKS_PER_SEC/1000)
89 {
90 Sleep(SleepTime);
91 LastTime=MonoClock();
92 }
93 }
94#endif
95#if defined(_WIN_ALL)
96 // Reset system sleep timer to prevent system going sleep.
97 SetThreadExecutionState(ES_SYSTEM_REQUIRED);
98#endif
99}
100
101
102

Callers 12

RestoreMethod · 0.85
CopyMethod · 0.85
RestoreMethod · 0.85
UnpReadMethod · 0.85
UnpWriteMethod · 0.85
OpenErrorMsgMethod · 0.85
SearchBlockMethod · 0.85
SearchSubBlockMethod · 0.85
ListArchiveFunction · 0.85
GetNextMethod · 0.85
CalcFileSumFunction · 0.85
ExtractFileCopyMethod · 0.85

Calls 2

MonoClockFunction · 0.85
ExitMethod · 0.80

Tested by

no test coverage detected