mirror of
https://github.com/thunderbrewhq/squall.git
synced 2025-12-12 10:32:29 +00:00
chore(build): migrate to system lib
This commit is contained in:
parent
aa616b75b5
commit
6ac442e473
16 changed files with 54 additions and 60 deletions
|
|
@ -1,21 +1,21 @@
|
|||
#include "storm/thread/SCritSect.hpp"
|
||||
|
||||
void SCritSect::Enter() {
|
||||
#if defined(WHOA_PLATFORM_WIN)
|
||||
#if defined(WHOA_SYSTEM_WIN)
|
||||
EnterCriticalSection(&this->m_opaqueData);
|
||||
#endif
|
||||
|
||||
#if defined(WHOA_PLATFORM_MAC) || defined(WHOA_PLATFORM_LINUX)
|
||||
#if defined(WHOA_SYSTEM_MAC) || defined(WHOA_SYSTEM_LINUX)
|
||||
pthread_mutex_lock(&this->m_mutex);
|
||||
#endif
|
||||
}
|
||||
|
||||
void SCritSect::Leave() {
|
||||
#if defined(WHOA_PLATFORM_WIN)
|
||||
#if defined(WHOA_SYSTEM_WIN)
|
||||
LeaveCriticalSection(&this->m_opaqueData);
|
||||
#endif
|
||||
|
||||
#if defined(WHOA_PLATFORM_MAC) || defined(WHOA_PLATFORM_LINUX)
|
||||
#if defined(WHOA_SYSTEM_MAC) || defined(WHOA_SYSTEM_LINUX)
|
||||
pthread_mutex_unlock(&this->m_mutex);
|
||||
#endif
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue