1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Keep atomics on separate cache lines.

This commit is contained in:
Bartosz Taudul
2019-12-31 14:46:01 +01:00
parent ede90710e5
commit 8b56386ccd
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -1349,7 +1349,7 @@ Worker::Worker( FileRead& f, EventType::Type eventMask, bool bgTasks )
size_t bufsz = 0;
char* outbuf = nullptr;
size_t outsz = 0;
std::atomic<State> state = Available;
alignas(64) std::atomic<State> state = Available;
};
// Leave one thread for file reader, second thread for dispatch (this thread)