verbal
March 28th, 2008, 12:27 PM
I want to handle the interrupt signal, and when i do that, the function called to be dependent on whats the program's condition is. I mean that i want to print the result for the operation running when interupted even if it hasn't finish but this could vary between some operations so i need to choose the function to be called.
The problem here is that these functions i want to choose from are members of a class
and i cant declare a function pointer and then assign it to a member of that specific class
(ex . fncpty = &class.function). Any other ideas about it?
For handling the signal i use the signal function which takes signal and a function pointer, any alternatives to that either are welcomed.
Thanks in advance.
The problem here is that these functions i want to choose from are members of a class
and i cant declare a function pointer and then assign it to a member of that specific class
(ex . fncpty = &class.function). Any other ideas about it?
For handling the signal i use the signal function which takes signal and a function pointer, any alternatives to that either are welcomed.
Thanks in advance.