#include /// Relax the spinlock using AMD64 pause instruction void spin_lock_relax (void) { __asm__ volatile ("pause"); }