[Webkit-unassigned] [Bug 70404] [EFL] Implement port layer of keygen element.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Oct 25 05:07:34 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=70404





--- Comment #14 from Raphael Kubo da Costa <kubo at profusion.mobi>  2011-10-25 05:07:34 PST ---
(In reply to comment #12)
> I use the static variables because I use singletone pattern here.
> 
> If I use the "DEFINE_STATIC_LOCAL" macro,
> source code might look like this.
> 
> SSLPrivateKeyStoreEfl* SSLPrivateKeyStoreEfl::getInstance()
> {
>     DEFINE_STATIC_LOCAL(SSLPrivateKeyStoreEfl, s_SSLPrivateKeyStoreEfl, ());
>     return &s_SSLPrivateKeyStoreEfl;
> }
> 
> I don't understand deeply about DEFINE_STATIC_LOCAL, 
> is it secure enough for singtone??
> 
> Or, do I need to make it as critical section?

If you're in doubt, it's worth taking a look at the macro in Source/JavaScriptCore/wtf/StdLibExtras.h -- the code is very simple.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list