X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fcore%2Fapplication.cpp;h=01bb558e279255fbb5f83676c61886966f9624b2;hp=a9aa88ea55bdee578d81238d614120a962be2173;hb=5000b0101346ee4b8c4e01e0123b94f000b18e8b;hpb=4b86752b4d7c705940b989d8b017743fd83d0e4d diff --git a/source/core/application.cpp b/source/core/application.cpp index a9aa88e..01bb558 100644 --- a/source/core/application.cpp +++ b/source/core/application.cpp @@ -124,7 +124,9 @@ int Application::main() #ifdef WIN32 Sleep(0); #else - sched_yield(); + //sched_yield(); + timespec ts={0,1000000}; + nanosleep(&ts, 0); #endif } else