0024665: A sample for advanced function mechanism

Update for Linux platform
This commit is contained in:
bugmaster
2016-02-25 17:08:20 +03:00
parent c19f09e973
commit 6396eacb4f
7 changed files with 98 additions and 41 deletions

View File

@@ -1,5 +1,5 @@
#include "FThread.h"
#include "GraphWidget.h"
#include "graphwidget.h"
#include <TFunction_Function.hxx>
#include <TFunction_IFunction.hxx>
@@ -67,7 +67,11 @@ void FThread::run()
{
L = getFreeFunction();
if (L.IsNull())
::Sleep(100);
#ifdef __GNUC__
sleep(0.001);
#else
::Sleep(100);
#endif
else
break;
}
@@ -123,4 +127,4 @@ void FThread::run()
}// while (More())
graph->setFinished();
}
}