ReadWriteLock tryEnterRead

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 !

Sure, will do.

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:

Oops, yes, copy-and-paste blooper!