给出一个典型的类:
struct Whatever { void Doit(); }; Whatever w;
什么是通过基于C void*的回调(如pthread_create()或信号处理程序)调用成员函数的最佳方法?
pthread_t pid; pthread_create(&pid, 0, ... &w.Doit() ... );
c++ struct function callback
c++ ×1
callback ×1
function ×1
struct ×1