mirror of
https://github.com/thunderbrewhq/squall.git
synced 2025-12-12 10:32:29 +00:00
feat(atomic): add SInterlockedIncrement and SInterlockedDecrement
This commit is contained in:
parent
4307fb2a1d
commit
653fa81853
3 changed files with 55 additions and 0 deletions
10
storm/Atomic.hpp
Normal file
10
storm/Atomic.hpp
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
#ifndef STORM_ATOMIC_HPP
|
||||
#define STORM_ATOMIC_HPP
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
int32_t SInterlockedDecrement(int32_t* ptr);
|
||||
|
||||
int32_t SInterlockedIncrement(int32_t* ptr);
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue