MCPcopy Create free account
hub / github.com/bazz1tv/snestracker / CriticalSectionCreate

Function CriticalSectionCreate

pc/ext/unrar/threadmisc.cpp:5–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3static uint GlobalPoolUseCount=0;
4
5static inline bool CriticalSectionCreate(CRITSECT_HANDLE *CritSection)
6{
7#ifdef _WIN_ALL
8 InitializeCriticalSection(CritSection);
9 return true;
10#elif defined(_UNIX)
11 return pthread_mutex_init(CritSection,NULL)==0;
12#endif
13}
14
15
16static inline void CriticalSectionDelete(CRITSECT_HANDLE *CritSection)

Callers 2

GlobalPoolCreateSyncMethod · 0.85
ThreadPoolMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected