ORIGINAL
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
original::threadBase< DERIVED >::threadData< Callback > Class Template Reference

Wrapper for thread execution data. More...

#include <thread.h>

Collaboration diagram for original::threadBase< DERIVED >::threadData< Callback >:
Collaboration graph

Public Member Functions

 threadData (Callback c)
 Construct thread data wrapper.
 

Static Public Member Functions

static voidrun (void *arg)
 Thread entry point wrapper.
 

Detailed Description

template<typename DERIVED>
template<typename Callback>
class original::threadBase< DERIVED >::threadData< Callback >

Wrapper for thread execution data.

Template Parameters
CallbackType of the thread callback function

Handles the storage and execution of thread callbacks, including exception handling and resource management.

Constructor & Destructor Documentation

◆ threadData()

template<typename DERIVED >
template<typename Callback >
original::threadBase< DERIVED >::threadData< Callback >::threadData ( Callback  c)
explicit

Construct thread data wrapper.

Parameters
cCallback to store
Postcondition
The callback is moved into the threadData object

Member Function Documentation

◆ run()

template<typename DERIVED >
template<typename Callback >
void * original::threadBase< DERIVED >::threadData< Callback >::run ( void arg)
static

Thread entry point wrapper.

Parameters
argPointer to threadData instance
Returns
Always nullptr
Exceptions
sysErrorif callback throws an error
Note
This static method serves as the bridge between C-style pthread callbacks and C++ callable objects.

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