Hi all!
I would like to do some cleaning (destroying some structures), when resource manager is going to die. Is there some way to do it (i.e. some kind of on_exit() method) ?
Thanks
Michal
Hi all!
I would like to do some cleaning (destroying some structures), when resource manager is going to die. Is there some way to do it (i.e. some kind of on_exit() method) ?
Thanks
Michal
yes, try to use signal handler \SIGTERM in standalone thread loop with “(destroying some structures)” resource syncronization
good luck
Resolved!
I have found that atexit() function should do it…