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.
- Return
the error code.
- Parameters
[in] thread_function
: the executing function for the thread.[in] args
: arguments to be passed to the thread.
-
int
join
()¶ join join the real time thread
- Return
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.
-