concept destruction in category c

appears as: destruction
Modern C

This is an excerpt from Manning's book Modern C.

Destruction of such an object is even simpler: we just have to check for the pointer, and then we may free the tab member unconditionally.

Race-free destruction of objects can be much more subtle to organize, because the access to data for initialization and destruction is not symmetric. Whereas it often is easy to determine at the beginning of the lifetime of an object that (and when) there is a single user, seeing whether there are still other threads that use an object is difficult if we do not keep track of it.