Comment #4 on issue 136 by tbit455...@aol.com: PNotificationCenter is a singleton but isn't declared as final
http://code.google.com/p/piccolo2d/issues/detail?id=136

Hi Allain,

what do you think about the following extension to your change:

// Your code
    public static PNotificationCenter defaultCenter() {
// My code to make it more threadsave ?
    public synchronized static PNotificationCenter defaultCenter() {
        if (DEFAULT_CENTER == null) {
            DEFAULT_CENTER = new PNotificationCenter();
        }
        return DEFAULT_CENTER;
    }


--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en

Reply via email to