Patch #810
closedSlim read/write locks on Windows
100%
Description
Accesses to the data dictionary are protected by a critical section and a semaphore implemented in class OFReadWriteLock.
Since Windows Vista, Windows offers "Slim Reader/Writer Locks" (https://msdn.microsoft.com/en-us/library/windows/desktop/aa904937%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396) that offer better concurrency when there are parallel threads that only read the data dictionary.
The attached patch replaces the existing implementation with SRW locks, which, however, different unlock methods for read locks
and write locks.
The patch may also affect Android (via POSIX_INTERFACE_WITHOUT_RWLOCK) - this was not considered when developing the patch
and may require special handling.
Submitted 2018-01-24 by Christian Fremgen <Christian.Fremgen@ith-icoserve.com>.
Files
Updated by Marco Eichelberg about 7 years ago
- Status changed from New to Closed
- Assignee set to Marco Eichelberg
- % Done changed from 0 to 100
Closed by commit #1e6aefd.