【发布时间】:2009-01-19 05:14:40
【问题描述】:
pthread 将void *(*start_routine)(void* userPtr) 作为其参数,我希望我可以使用std::mem_fun 来解决我的问题,但我不能。
我想使用函数void * threadFunc() 并让userPtr 充当(userPtr->threadFunc()) 类。有没有类似std::mem_func的功能可以使用?
【问题讨论】:
标签: c++ pthreads std member-functions