mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-11 16:49:16 +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 });
|
||||
}
|
||||
|
||||
mutex m;
|
||||
bool ProcessTask()
|
||||
bool TaskManager :: ProcessTask()
|
||||
{
|
||||
TNestedTask task;
|
||||
TCToken ctoken(taskqueue);
|
||||
|
@ -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());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user