Lets say we have a module for message handling to which we pass a callback, and we want to asbtract the user from thread management.
We have all covered except the variables used or declared inside the callback, the user has defined his callback and passed to the module and of course he is expecting to see those variables change, but they won't.
Any hint on doing this? Perhaps is possible to know the local vars inside a function once you have the pointer and share them dymanically? In that case we won't have acess from the callback to previous vars ....
Any hint.