c++ - Boost Connect Signal From one class to another -


i need emit signal child class it's parent class when asynchronous operation finished using boost signal,

for example parent class

class {     void dotask(){       class b child;       child.asynchtask();     }      void onfinished(){       //invoke when async task finished     } }; 

and second class

class b {      void asynchtask(){      //async task start  here       }   void asynchtaskfinished(){       // emit signal here invoke onfinished() of parent class      }  }; 

how can using boost signal, found example , post complete example using boost::signals c++ eventing, couldn't figure out how implement in case.

any appreciated.

thanks haris


Comments

Popular posts from this blog

javascript - oscilloscope of speaker input stops rendering after a few seconds -

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -