Use usleep instead of sched_yield by default
authorMartin Kroeker <martin@ruby.chemie.uni-freiburg.de>
Thu, 7 Jun 2018 08:18:26 +0000 (10:18 +0200)
committerGitHub <noreply@github.com>
Thu, 7 Jun 2018 08:18:26 +0000 (10:18 +0200)
sched_yield only burns cpu cycles, fixes #900,  see also #923, #1560

common.h

index 663f37e..b7181e6 100644 (file)
--- a/common.h
+++ b/common.h
@@ -356,7 +356,7 @@ typedef int blasint;
 */
 
 #ifndef YIELDING
-#define YIELDING       sched_yield()
+#define YIELDING       usleep(10)
 #endif
 
 /***