X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flib%2Finternaltask.cpp;h=101534cf8448f4e5bd714764f0513bd905413754;hb=cb7570b1cc8364481550eca1447cd6a140b31aa7;hp=fe3ae9d0666a5458fd9beb925c4491cb0f05bbee;hpb=3c07e3725d6a4f002cb3e246cf707ffda73f9a96;p=builder.git diff --git a/source/lib/internaltask.cpp b/source/lib/internaltask.cpp index fe3ae9d..101534c 100644 --- a/source/lib/internaltask.cpp +++ b/source/lib/internaltask.cpp @@ -1,5 +1,8 @@ +#include #include "internaltask.h" +using namespace Msp; + InternalTask::~InternalTask() { worker.join(); @@ -22,7 +25,8 @@ Task::Status InternalTask::check() Task::Status InternalTask::wait() { Status result; - while((result = check())==RUNNING) ; + while((result = check())==RUNNING) + Time::sleep(10*Time::msec); return result; }