mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-11 16:49:16 +05:00
switch off tracer if TaskManager is called without arguments
This commit is contained in:
parent
83b4fba403
commit
354898498f
@ -240,7 +240,10 @@ threads : int
|
||||
class ParallelContextManager {
|
||||
int num_threads;
|
||||
public:
|
||||
ParallelContextManager() : num_threads(0) {};
|
||||
ParallelContextManager() : num_threads(0) {
|
||||
TaskManager::SetPajeTrace(0);
|
||||
PajeTrace::SetMaxTracefileSize(0);
|
||||
};
|
||||
ParallelContextManager(size_t pajesize) : num_threads(0) {
|
||||
TaskManager::SetPajeTrace(pajesize > 0);
|
||||
PajeTrace::SetMaxTracefileSize(pajesize);
|
||||
|
Loading…
Reference in New Issue
Block a user