Singleton.h fixes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sunday 15 August 2004 09:24, Michal Zygmuntowicz wrote:
> Try to delete InstanceOf declaration (line 88, singleton.h)
> and definition (lines 131-141, singleton.h). Also, gk.cxx
> needs to be changed: replace InstanceOf<Toolkit>() 
> with Toolkit::Instance().
> Please let me know whether it works. If so, I'll commit the fix
> to the cvs.
> 
Ok sorry for the delay... the computer was shut
down for the weekend...

I solved the problem by changing the logic
in the singleton.h  
take a look at the patch...
===================================
--- singleton.h.orig    Sun Aug 15 05:31:37 2004
+++ singleton.h Sun Aug 15 05:32:02 2004
@@ -81,12 +81,7 @@
        Singleton();
        ~Singleton();

-#ifdef WIN32
   public:
-#else
-  private:
-       friend T *InstanceOf<T>();
-#endif
        static SingletonBase *m_Instance;
        static PMutex m_CreationLock;
 };
==================================
and it works ok all the time...  including gcc 3.3.x

Now I have a 5 gnugk network running 
some in the internet some in vpn...
and it is amzaing how the endpoints using
ata, cphone, ohphone, and netmeeting talk 
to each other... 

that is 4 using FreeBSD release and 1 using current...

Now I will play with the postgres databases...

Sergio


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285

_______________________________________________________

List: Openh323gk-users@xxxxxxxxxxxxxxxxxxxxx
Archive: http://sourceforge.net/mailarchive/forum.php?forum_id=8549
Homepage: http://www.gnugk.org/

[Index of Archives]     [SIP]     [Open H.323]     [Gnu Gatekeeper]     [Asterisk PBX]     [ISDN Cause Codes]     [Yosemite News]

  Powered by Linux