mirror of
https://github.com/NGSolve/netgen.git
synced 2025-02-28 15:05:39 +05:00
Make ProcessTask() a static method of TaskManager
This commit is contained in:
parent
9357ad1e78
commit
8bdeb129b4
@ -278,8 +278,7 @@ namespace ngcore
|
|||||||
taskqueue.enqueue (ptoken, { afunc, i, num, endcnt });
|
taskqueue.enqueue (ptoken, { afunc, i, num, endcnt });
|
||||||
}
|
}
|
||||||
|
|
||||||
mutex m;
|
bool TaskManager :: ProcessTask()
|
||||||
bool ProcessTask()
|
|
||||||
{
|
{
|
||||||
TNestedTask task;
|
TNestedTask task;
|
||||||
TCToken ctoken(taskqueue);
|
TCToken ctoken(taskqueue);
|
||||||
|
@ -103,6 +103,8 @@ namespace ngcore
|
|||||||
|
|
||||||
static void SetPajeTrace (bool use) { use_paje_trace = use; }
|
static void SetPajeTrace (bool use) { use_paje_trace = use; }
|
||||||
|
|
||||||
|
NGCORE_API static bool ProcessTask();
|
||||||
|
|
||||||
NGCORE_API static void CreateJob (const function<void(TaskInfo&)> & afunc,
|
NGCORE_API static void CreateJob (const function<void(TaskInfo&)> & afunc,
|
||||||
int antasks = task_manager->GetNumThreads());
|
int antasks = task_manager->GetNumThreads());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user