Run InitTask in the worker thread (same as all other state handlers).

This commit is contained in:
Alexey Rybalchenko
2017-09-06 12:54:00 +02:00
committed by Mohammad Al-Turany
parent bfb9feab03
commit 6349438829
3 changed files with 12 additions and 9 deletions

View File

@@ -482,8 +482,7 @@ class FairMQDevice : public FairMQStateMachine, public FairMQConfigurable
virtual void Init();
/// Task initialization (can be overloaded in child classes)
/// Executed in a worker thread (currently runs in main thread as workaround for multithread-aware FairRunAna/Sim implementation)
// TODO: fix this to also run in worker thread, or change all callbacks to be run in the main thread?
/// Executed in a worker thread
virtual void InitTask();
/// Runs the device (to be overloaded in child classes)