Public Member Functions | Public Attributes | List of all members
Xs4FileTask::ReaderThread Class Reference
Inheritance diagram for Xs4FileTask::ReaderThread:
Inheritance graph
[legend]

Public Member Functions

int32_t innerFunction (void) override
 Virtual inner function. More...
 
 ReaderThread (Xs4FileTask *task)
 
- Public Member Functions inherited from xsens::StandardThread
XsThreadId getThreadId (void) const
 
bool isAlive (void) volatile const noexcept
 
bool isRunning (void) volatile const noexcept
 Returns whether the thread is currently running. More...
 
bool isTerminating () volatile const noexcept
 Returns whether the thread should (have) terminate(d) More...
 
bool setPriority (XsThreadPriority pri)
 Sets the priority of the thread. More...
 
virtual void signalStopThread (void)
 Tells the thread to stop but does not wait for it to end. More...
 
 StandardThread ()
 
bool startThread (const char *name=NULL)
 Starts the thread. More...
 
void stopThread (void) noexcept
 Tells the thread to stop and waits for it to end. More...
 
virtual ~StandardThread ()
 

Public Attributes

bool m_done
 
Xs4FileTaskm_task
 

Additional Inherited Members

- Protected Member Functions inherited from xsens::StandardThread
virtual void exitFunction (void)
 Virtual exit function. More...
 
virtual void initFunction (void)
 Virtual initialization function. More...
 
XsThread threadHandle () const
 Return the thread handle. More...
 
- Protected Attributes inherited from xsens::StandardThread
pthread_attr_t m_attr
 Duplicates m_stop functionality for external dependent classes such as Semaphore. More...
 
bool m_running
 Indicates that the thread is running. More...
 
volatile std::atomic_bool m_stop
 Indicates that the thread should stop. Derived classes should check isTerminating() instead of directly polling this value when checking if the thread should stop. However, there are some cases (tests, SignallingThread) where direct access from within the class is desired, which is why the vlaue is protected instead of private. More...
 
volatile std::atomic_bool m_yieldOnZeroSleep
 When true, a sleep value of 0 returned by innerFunction will trigger a thread yield operation. When false, the next cycle is started immediately. More...
 

Detailed Description

Definition at line 374 of file mtbfilecommunicator.cpp.

Constructor & Destructor Documentation

◆ ReaderThread()

Xs4FileTask::ReaderThread::ReaderThread ( Xs4FileTask task)

Definition at line 386 of file mtbfilecommunicator.cpp.

Member Function Documentation

◆ innerFunction()

int32_t Xs4FileTask::ReaderThread::innerFunction ( void  )
overridevirtual

Virtual inner function.

Reimplemented from xsens::StandardThread.

Definition at line 392 of file mtbfilecommunicator.cpp.

Member Data Documentation

◆ m_done

bool Xs4FileTask::ReaderThread::m_done

Definition at line 380 of file mtbfilecommunicator.cpp.

◆ m_task

Xs4FileTask* Xs4FileTask::ReaderThread::m_task

Definition at line 379 of file mtbfilecommunicator.cpp.


The documentation for this class was generated from the following file:


xsens_mti_driver
Author(s):
autogenerated on Sun Sep 3 2023 02:43:22