3
Answers

How does this work?

S

S

12y
1k
1
Hi

I might be missing something extremely obvious here but given the following:-

Public Lazy(bool isThreadSafe)

The write up for this is

true to make this instance usable concurrently by multiple threads; false to make the instance usable by only one thread at a time.  

I cannot see any logic to determine what would happen if true was set or if false was set?

Regards

Steven





Answers (3)