System/Log (16 functions) and Thread::WaitForever. Storm SComp review: ImaAdpcmCompress size compares are signed as in 12340. AllocSTL_raw and CCritSect members marked INLINED; SSyncObject ctor out of the header. Platform layout: Windows API code lives in <dir>/Win32/ (whole file in #if WOWDECOMP_ARCH_32) with full copies in <dir>/Win64/ (ARCH_64); no _M_X64 blocks inside files. Former W32/ and *_Win32.cpp files moved, their headers are generic now. Win32 API calls moved out of generic File/Log/Thread/Unicode/SCmd files; Storm SErr/SLog/SReg/SMsg moved whole. CODING_RULES section 7, PORTING_64BIT "Platform folders". Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
20 lines
356 B
C++
20 lines
356 B
C++
#ifndef ENGINE_SOURCE_STORM_H_SCRITSECT_H
|
|
#define ENGINE_SOURCE_STORM_H_SCRITSECT_H
|
|
|
|
#include <cstdint>
|
|
#include <windows.h>
|
|
|
|
class CCritSect {
|
|
public:
|
|
/* 0000 */ CRITICAL_SECTION m_critsect;
|
|
|
|
CCritSect();
|
|
~CCritSect();
|
|
void Enter();
|
|
void Enter(int32_t forwriting);
|
|
void Leave();
|
|
void Leave(int32_t fromwriting);
|
|
};
|
|
|
|
#endif
|