memgraph/utils/cpu_relax.hpp
Dominik Tomičević d50fc8997c implemented futexes
2015-11-26 02:52:51 +01:00

10 lines
174 B
C++

#pragma once
/* @brief improves contention in spinlocks
* hints the processor that we're in a spinlock and not doing much
*/
inline void cpu_relax()
{
asm("PAUSE");
}