Also set readerDoneEvent when exiting an upgradeable lock and reader condition is...
authorJérémie Laval <jeremie.laval@gmail.com>
Wed, 22 Sep 2010 10:01:10 +0000 (11:01 +0100)
committerJérémie Laval <jeremie.laval@gmail.com>
Wed, 22 Sep 2010 10:04:03 +0000 (11:04 +0100)
commit65180d590b27e7187c992b0f65115eefbf54aced
tree48f04c7426e503ec36ccb2077122acf27cf95262
parent132695aa93a64007c83f1047f7dafc253dfe0ae3
Also set readerDoneEvent when exiting an upgradeable lock and reader condition is correct.

It could cause a deadlock when a writer tested the rwlock value before RwRead was removed and another Upgradeable operation happened at the same time.
mcs/class/System.Core/System.Threading/ReaderWriterLockSlim.cs