Skip to content
Snippets Groups Projects
Commit dd505030 authored by deuce's avatar deuce
Browse files

No need for sched_yield() if we promote od_sleep()

parent bdad094c
No related branches found
No related tags found
No related merge requests found
......@@ -63,7 +63,6 @@
#include <glob.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sched.h>
#endif
#include "ODGen.h"
#include "ODCore.h"
......@@ -808,8 +807,6 @@ ODAPIDEF void ODCALL od_sleep(tODMilliSec Milliseconds)
#endif /* ODPLAT_WIN32 */
#ifdef ODPLAT_NIX
sched_yield();
/* Prevent 100% CPU usage! */
if(Milliseconds==0)
Milliseconds=1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment