diff --git a/libsrc/general/parthreads.hpp b/libsrc/general/parthreads.hpp index 8f6561ad..c19bd222 100644 --- a/libsrc/general/parthreads.hpp +++ b/libsrc/general/parthreads.hpp @@ -10,6 +10,7 @@ /* Parallel thread, Mutex, */ +#include namespace netgen { @@ -95,9 +96,9 @@ void ParallelFor( int first, int next, const TFunc & f ) - typedef void (*TaskManager)(function); + typedef void (*TaskManager)(std::function); - inline void DummyTaskManager (function func) + inline void DummyTaskManager (std::function func) { func(0,2); func(1,2);