关于在c++ member function里用signal( )# Programming - 葵花宝典
w*s
1 楼
linux里这个例子
void my_handler (int param)
{
signaled = 1;
my_handler2(...);
}
int main ()
{
signal (SIGINT, my_handler);
}
如果my_handler, my_handler2是c++ member function,那么怎么整?
我老用了巨复杂的办法,奶奶的。。。
void my_handler (int param)
{
signaled = 1;
my_handler2(...);
}
int main ()
{
signal (SIGINT, my_handler);
}
如果my_handler, my_handler2是c++ member function,那么怎么整?
我老用了巨复杂的办法,奶奶的。。。