Pad fields to cacheline size to avoid false sharing (#475)

This commit is contained in:
Stjepan Glavina
2018-07-16 14:22:48 -07:00
committed by Carl Lerche
parent 6ba8e7621d
commit c17ecb53e7
6 changed files with 15 additions and 9 deletions
+1 -1
View File
@@ -85,7 +85,7 @@ impl super::Executor for DefaultExecutor {
EXECUTOR.with(|current_executor| {
match current_executor.get() {
Some(executor) => {
let executor = unsafe { &mut *executor };
let executor = unsafe { &*executor };
executor.status()
}
None => {