mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-05-29 22:41:48 +08:00
0024665: A sample for advanced function mechanism
Update for Linux platform
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user