resource manager on exit

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) ?



yes, try to use signal handler \SIGTERM in standalone thread loop with “(destroying some structures)” resource syncronization
good luck

I have found that atexit() function should do it…