Make ProcessTask() a static method of TaskManager

This commit is contained in:
Matthias Hochsteger 2019-07-11 13:24:51 +02:00
parent 9357ad1e78
commit 8bdeb129b4
2 changed files with 3 additions and 2 deletions

View File

@ -278,8 +278,7 @@ namespace ngcore
taskqueue.enqueue (ptoken, { afunc, i, num, endcnt });
}
mutex m;
bool ProcessTask()
bool TaskManager :: ProcessTask()
{
TNestedTask task;
TCToken ctoken(taskqueue);

View File

@ -103,6 +103,8 @@ namespace ngcore
static void SetPajeTrace (bool use) { use_paje_trace = use; }
NGCORE_API static bool ProcessTask();
NGCORE_API static void CreateJob (const function<void(TaskInfo&)> & afunc,
int antasks = task_manager->GetNumThreads());