mirror of
https://github.com/apple/foundationdb.git
synced 2025-05-21 05:53:02 +08:00
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?
|
// can set this variable properly?
|
||||||
constexpr size_t CACHE_LINE_SIZE = 64;
|
constexpr size_t CACHE_LINE_SIZE = 64;
|
||||||
|
|
||||||
class ThreadSpinLock {
|
class alignas(CACHE_LINE_SIZE) ThreadSpinLock {
|
||||||
public:
|
public:
|
||||||
// #ifdef _WIN32
|
// #ifdef _WIN32
|
||||||
ThreadSpinLock() {
|
ThreadSpinLock() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user