From fb31c8154d9b7491d2487468783960bb3f10d61d Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Wed, 11 Jan 2017 23:36:04 +0100 Subject: [PATCH] Replace sched_yield on Linux with nop instruction --- common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common.h b/common.h index e728b9ef3..d973e44c8 100644 --- a/common.h +++ b/common.h @@ -315,7 +315,7 @@ typedef int blasint; #endif #if defined(OS_LINUX) -#define YIELDING usleep(1) +#define YIELDING __asm__ __volatile__ ("nop;nop;nop;nop;nop;nop;nop;nop;\n"); #endif #if defined(OS_WINDOWS)