maint(fast_critical_section): improve

This commit is contained in:
FutureRave 2023-05-04 18:25:33 +01:00
parent 633870ed0b
commit 98054cdff9
No known key found for this signature in database
GPG Key ID: 22F9079C86CFAB31

View File

@ -6,8 +6,8 @@
namespace game::engine
{
fast_critical_section_scope_read::fast_critical_section_scope_read(native::FastCriticalSection* cs)
: cs_(cs)
{
this->cs_ = cs;
if (this->cs_)
{
native::Sys_LockRead(this->cs_);
@ -23,8 +23,8 @@ namespace game::engine
}
fast_critical_section_scope_write::fast_critical_section_scope_write(native::FastCriticalSection* cs)
: cs_(cs)
{
this->cs_ = cs;
if (this->cs_)
{
native::Sys_LockWrite(this->cs_);