Used SwitchToThread for YIELDING on AMD piledriver with Windows.

This commit is contained in:
Zhang Xianyi 2014-01-28 16:40:19 +08:00
parent 75acf96d94
commit a789b77b75
1 changed files with 2 additions and 1 deletions

View File

@ -315,9 +315,10 @@ typedef int blasint;
#endif #endif
#ifdef PILEDRIVER #ifdef PILEDRIVER
#ifndef YIELDING
#define YIELDING __asm__ __volatile__ ("nop;nop;nop;nop;nop;nop;nop;nop;\n"); #define YIELDING __asm__ __volatile__ ("nop;nop;nop;nop;nop;nop;nop;nop;\n");
#endif #endif
#endif
#ifndef YIELDING #ifndef YIELDING
#define YIELDING sched_yield() #define YIELDING sched_yield()