An object pointer that uses mutex to assure thread-safe singleton use.
This class is used to support a threadsafe replacable pointer to a object. This class is used to form and support the templated locked_pointer class and used with the locked_release class. An example of where this might be used is in config file parsers, where a seperate thread may process and generate a new config object for new threads to refernce, while the old configuration continues to be used by a reference counted instance that goes away when it falls out of scope.
- Author
- David Sugar dyfet.nosp@m.@gnu.nosp@m.telep.nosp@m.hony.nosp@m..org
Definition at line 1121 of file thread.h.