Skip to content

Commit ed7c4a0

Browse files
authored
Use usleep instead of sched_yield by default
sched_yield only burns cpu cycles, fixes #900, see also #923, #1560
1 parent 0218b88 commit ed7c4a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ typedef int blasint;
356356
*/
357357

358358
#ifndef YIELDING
359-
#define YIELDING sched_yield()
359+
#define YIELDING usleep(10)
360360
#endif
361361

362362
/***

0 commit comments

Comments
 (0)