Is this thread safe?

dsimcha dsimcha at yahoo.com
Fri Jul 11 17:52:15 PDT 2008


Never mind, I see at least one reason why my last post would be incorrect.  The
length variable could be set out-of-order before all of the factorials up to
length are calculated.  Is there any simple way to write this function so it's
thread-safe without using synchronized just to access cached results?



More information about the Digitalmars-d mailing list