Replace sched_yield on Linux with nop instruction

This commit is contained in:
Martin Kroeker 2017-01-11 23:36:04 +01:00 committed by GitHub
parent f1db56fcd7
commit fb31c8154d
1 changed files with 1 additions and 1 deletions

View File

@ -315,7 +315,7 @@ typedef int blasint;
#endif #endif
#if defined(OS_LINUX) #if defined(OS_LINUX)
#define YIELDING usleep(1) #define YIELDING __asm__ __volatile__ ("nop;nop;nop;nop;nop;nop;nop;nop;\n");
#endif #endif
#if defined(OS_WINDOWS) #if defined(OS_WINDOWS)