////////////////////////////////////////////////////////////////// // // singleton.cxx // // This work is published under the GNU Public License (GPL) // see file COPYING for details. // We also explicitely grant the right to link this code // with the OpenH323 library. // // History: // 2001/07/11 initial version (Chih-Wei Huang) // ////////////////////////////////////////////////////////////////// #if defined(_WIN32) && (_MSC_VER <= 1200) #pragma warning(disable:4284) #endif #include #include "singleton.h" #if PTRACING static int singleton_cnt=0; #endif listptr SingletonBase::_instance_list; SingletonBase::SingletonBase(const char *n) : m_name(n) { #if PTRACING ++singleton_cnt; PTRACE(2,"Create instance: "<