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

Function CriticalSectionStart

Libraries/unrar/threadmisc.cpp:22–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20
21
22static inline void CriticalSectionStart(CRITSECT_HANDLE *CritSection)
23{
24#ifdef _WIN_ALL
25 EnterCriticalSection(CritSection);
26#elif defined(_UNIX)
27 pthread_mutex_lock(CritSection);
28#endif
29}
30
31
32static inline void CriticalSectionEnd(CRITSECT_HANDLE *CritSection)

Callers 2

PoolThreadLoopMethod · 0.85
GetQueuedTaskMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected