PFUNC  1.0
Public Member Functions | Public Attributes
pfunc::detail::reroute_function_arg Struct Reference

#include <pfunc/trampolines.hpp>

List of all members.

Public Member Functions

 reroute_function_arg (taskmgr_virtual_base *taskmgr_ptr, void *thd_attr)

Public Attributes

taskmgr_virtual_basetaskmgr_ptr
void * thd_attr

Detailed Description

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.


Constructor & Destructor Documentation

pfunc::detail::reroute_function_arg::reroute_function_arg ( taskmgr_virtual_base taskmgr_ptr,
void *  thd_attr 
) [inline, explicit]

Constructor

Parameters:
[in]taskmgr_ptrThe pointer to the taskmgr object.
[in]thd_attrThe pointer to the pfunc_thread_attr_t associated with this thread.

Member Data Documentation

pointer to the task manager

pointer (cast as void) to thread_attr


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