Add alignment to ThreadSpinLock
Co-authored-by: Andrew Noyes <63815641+sfc-gh-anoyes@users.noreply.github.com>
This commit is contained in:
parent
bf07964fea
commit
1d81a32bb7
|
@ -49,7 +49,7 @@
|
|||
// can set this variable properly?
|
||||
constexpr size_t CACHE_LINE_SIZE = 64;
|
||||
|
||||
class ThreadSpinLock {
|
||||
class alignas(CACHE_LINE_SIZE) ThreadSpinLock {
|
||||
public:
|
||||
// #ifdef _WIN32
|
||||
ThreadSpinLock() {
|
||||
|
|
Loading…
Reference in New Issue