Browse Source

Use usleep instead of sched_yield by default

sched_yield only burns cpu cycles, fixes #900,  see also #923, #1560
tags/v0.3.1
Martin Kroeker GitHub 7 years ago
parent
commit
ed7c4a043b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      common.h

+ 1
- 1
common.h View File

@@ -356,7 +356,7 @@ typedef int blasint;
*/

#ifndef YIELDING
#define YIELDING sched_yield()
#define YIELDING usleep(10)
#endif

/***


Loading…
Cancel
Save