mirror of
https://github.com/thunderbrewhq/squall.git
synced 2025-12-12 10:32:29 +00:00
feat(thread): implement CSRWLock::Enter and CSRWLock::Leave for windows (#1)
This commit is contained in:
parent
8210d368f6
commit
2fb9fd284c
5 changed files with 61 additions and 6 deletions
|
|
@ -3,6 +3,10 @@
|
|||
|
||||
#include <cstdint>
|
||||
|
||||
#if defined(WHOA_PLATFORM_WIN)
|
||||
#include "storm/thread/win/SRWLock.hpp"
|
||||
#endif
|
||||
|
||||
#if defined(WHOA_PLATFORM_MAC) || defined(WHOA_PLATFORM_LINUX)
|
||||
#include <pthread.h>
|
||||
#endif
|
||||
|
|
@ -10,8 +14,8 @@
|
|||
class CSRWLock {
|
||||
public:
|
||||
// Member variables
|
||||
#ifdef WHOA_PLATFORM_WIN
|
||||
char m_opaqueData[12];
|
||||
#if defined(WHOA_PLATFORM_WIN)
|
||||
SRWLock::SURWLOCK m_opaqueData;
|
||||
#endif
|
||||
|
||||
#if defined(WHOA_PLATFORM_MAC) || defined(WHOA_PLATFORM_LINUX)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue