Delphi MREW implementation that favors readers?

delphi, multithreading, synchronization

Solution

I think the TMultiReadExclusiveWriteSynchronizer already favors readers.

As the name of the component implies, a TMREWS should be used when there is much reading and little writing to be done. In addition, the READ operations should be kept to a MINIMUM otherwise your write threads could be left waiting indefinitely.

It is in the SysUtils unit.

Problem

Is there a Delphi implementation of an MREW (multiple read, exclusive write) lock, that favors reading over writing?

Original source