[Os-project-managers] ticket 14 - question about programming style

Horand Gassmann Horand.Gassmann at Dal.Ca
Mon Nov 26 10:26:16 EST 2012


Horand Gassmann <Horand.Gassmann at DAL.CA> wrote:

> Kipp Martin <kmartin at chicagobooth.edu> wrote:
>
>> Hi Gus:
>>
>> I don't see a good solution right now.  I think the problem with  
>> solution 1 is that it makes the code no longer thread safe (I don't  
>> really understand thread safe, but I do know it important).  I  
>> don't much about the namespace idea. I did not know this was  
>> frowned on.
>
> It's the same issue about thread-safety. <parrot> To implement  
> singletons in a thread-safe way, you need double-checking locks, and  
> from what I can tell, those are platform-dependent. </parrot>

This paper talks about the issues quite clearly:

http://www.aristeia.com/Papers/DDJ_Jul_Aug_2004_revised.pdf



More information about the Os-project-managers mailing list