Add alignment to ThreadSpinLock

Co-authored-by: Andrew Noyes <63815641+sfc-gh-anoyes@users.noreply.github.com>
This commit is contained in:
Markus Pilman 2020-07-13 13:30:01 -06:00 committed by GitHub
parent bf07964fea
commit 1d81a32bb7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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() {