feat(atomic): add SInterlockedIncrement and SInterlockedDecrement

This commit is contained in:
fallenoak 2020-12-04 00:00:03 -06:00
parent 4307fb2a1d
commit 653fa81853
No known key found for this signature in database
GPG key ID: 7628F8E61AEA070D
3 changed files with 55 additions and 0 deletions

10
storm/Atomic.hpp Normal file
View 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