The documentation for Julia 0.5.0 says that the lock returned by 
ReentrantLock() "is NOT threadsafe" ( 
http://docs.julialang.org/en/release-0.5/stdlib/parallel/ see 
ReentrantLock()) .  What does that mean?  I interpret it to mean that I 
cannot safely call lock or unlock simultaneously with different threads, 
but then what good would the lock be at all?

In any case, I need a reliable mutex-style lock, but am using Julia 0.4.3 
where there is no Mutex, as far as I can tell.  Can I use ReentrantLock and 
lock and unlock?  Thanks.


Reply via email to