Class real_time_tools::RealTimeThread¶
-
class real_time_tools::RealTimeThread¶
This class allows you to spawn thread.
Its parameter are defined above.
Public Functions
-
RealTimeThread()¶
Construct a new ThreadInfo object.
-
RealTimeThread(const real_time_tools::RealTimeThread &other) = delete¶
We do not allow copies of this object.
-
~RealTimeThread()¶
Destroy the RealTimeThread object.
-
int create_realtime_thread(void *(*thread_function)(void*), void *args = nullptr)¶
create_realtime_thread spawns a real time thread if the OS allows it.
- Parameters
thread_function – [in] the executing function for the thread.
args – [in] arguments to be passed to the thread.
- Returns
the error code.
-
int join()¶
join join the real time thread
- Returns
the error code.
-
void block_memory()¶
block_memory block the current and futur memory pages.
see https://wiki.linuxfoundation.org/realtime/documentation/howto/applications/memory#memory-locking for further explanation.
Public Members
-
RealTimeThreadParameters parameters_¶
Paramter of the real time thread.
-
RealTimeThread()¶