Closed GoogleCodeExporter closed 9 years ago
I vote for pushing this to 2.0
Original comment by heue...@gmail.com
on 21 Oct 2009 at 2:17
Agreed, done.
Original comment by allain.lalonde
on 21 Oct 2009 at 2:39
Fixed in r1005.
Original comment by allain.lalonde
on 16 Apr 2010 at 2:06
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;
}
Original comment by tbit455...@aol.com
on 17 Apr 2010 at 9:39
Since it's a singleton, I think that's best practice. I will apply your
suggestion.
Original comment by allain.lalonde
on 17 Apr 2010 at 11:57
Original comment by heue...@gmail.com
on 2 Mar 2011 at 4:12
Original issue reported on code.google.com by
allain.lalonde
on 13 Oct 2009 at 6:48