ReadWriteLock tryEnterRead


#1

Hi Jules,

Would it be possible to add tryEnterRead in the ReadWriteLock class ?
It would only lock if there is no writer locking right now.

Thanks !


#2

Sure, will do.


#3

Thanks for the quick impl.

The doc looks wrong though
It says:
Multiple threads can simulaneously lock the object for reading, but if another thread has it locked for writing, then this will block until it releases the lock.
which doesn’t make sense as this is the Try version :slight_smile:


#4

Oops, yes, copy-and-paste blooper!