PFUNC 1.0
|
#include <pfunc/trampolines.hpp>
Public Member Functions | |
reroute_function_arg (taskmgr_virtual_base *taskmgr_ptr, void *thd_attr) | |
Public Attributes | |
taskmgr_virtual_base * | taskmgr_ptr |
void * | thd_attr |
Each thread ultimately ends up running "run()" function in pfunc_t. However, since both pthreads and WINDOWS threads cannot directly call member functions as their start functions, we use a trampoline mechanism.
pfunc::detail::reroute_function_arg::reroute_function_arg | ( | taskmgr_virtual_base * | taskmgr_ptr, |
void * | thd_attr | ||
) | [inline, explicit] |
Constructor
[in] | taskmgr_ptr | The pointer to the taskmgr object. |
[in] | thd_attr | The pointer to the pfunc_thread_attr_t associated with this thread. |
pointer to the task manager
pointer (cast as void) to thread_attr