A class for handling file loading process in a separate thread. More...
Classes | |
class | ReaderThread |
Public Member Functions | |
bool | exec () override |
Check if the file load is complete. More... | |
Xs4FileTask (FileLoader *inf, XsDevice *device) | |
Construct a file task, but does not schedule it. More... | |
virtual | ~Xs4FileTask () |
Destroy this process task. More... | |
![]() | |
bool | isCanceling () const |
Returns true if the task has been told to cancel itself. More... | |
virtual unsigned int | needToWaitFor () |
This function gets called by PooledThread when the exec() function returns false to determine if we should wait for a specific task. More... | |
unsigned int | taskId () const |
Returns the task ID of the task or 0 if it doesn't have a proper ID (yet) More... | |
ThreadPoolTask () | |
virtual | ~ThreadPoolTask () |
Private Attributes | |
XsDevice * | m_device |
FileLoader * | m_loader |
The Communicator object that contains information on calibration and filtering. More... | |
Xs4FileTask::ReaderThread | m_thread |
Friends | |
class | ReaderThread |
A class for handling file loading process in a separate thread.
This task will delegate the loading of the file to yet another thread, keeping the task in the threadpool as a monitoring task. This is because ThreadPoolTask tasks should be small tasks and file loading can take a while.
Definition at line 328 of file mtbfilecommunicator.cpp.
|
inline |
Construct a file task, but does not schedule it.
Definition at line 333 of file mtbfilecommunicator.cpp.
|
inlinevirtual |
Destroy this process task.
Definition at line 364 of file mtbfilecommunicator.cpp.
|
inlineoverridevirtual |
Check if the file load is complete.
Implements xsens::ThreadPoolTask.
Definition at line 345 of file mtbfilecommunicator.cpp.
|
friend |
Definition at line 383 of file mtbfilecommunicator.cpp.
|
private |
Definition at line 372 of file mtbfilecommunicator.cpp.
|
private |
The Communicator object that contains information on calibration and filtering.
Definition at line 371 of file mtbfilecommunicator.cpp.
|
private |