Jérémie Laval
fcf6cc6955
Add unit tests for recursive acquire of a Write or Upgradeable lock from a Read lock state
2010-08-31 17:01:41 +01:00
Jérémie Laval
0348e24eb7
Add unit test for ReaderWriterLockSlim basic recursion support.
2010-08-31 17:01:40 +01:00
Jérémie Laval
ed5833ed6a
Tune thread count in ReaderWriterLockSlim unit tests
2010-08-31 17:01:38 +01:00
Jérémie Laval
5d3ce7655d
Fix ReaderWriterLockSlim unit tests.
...
In the latest revision of the framework, ReaderWriterLockSlim is totally fair and thus a call to TryEnterReadLock musn't succeed when writers are waiting to get the lock before them (and when the lock is currently in read mode).
2010-08-31 17:01:37 +01:00
Jérémie Laval
15a738f32f
Fix ReaderWriterLockSlim unit tests.
...
As stated by MSDN, to be fully downgraded to a read lock state a call to ExitUpgradableReadLock must be issued straight after EnterReadLock.
2010-08-31 17:01:37 +01:00
Jb Evain
7feca4fdb6
comment out debug output
...
svn path=/trunk/mcs/; revision=155398
2010-04-14 15:25:59 +00:00
Atsushi Eno
440ba3208d
2009-06-15 Atsushi Enomoto <[email protected] >
...
* ReaderWriterLockSlim.cs : fix deadlock when entered
read lock -> entered writer lock -> exited writer lock
-> exited read lock and then entered reader lock.
Fixed bug #512485 , patch by Kazuki Oikawa.
* ReaderWriterLockSlimTest.cs : test for bug #512485 , by
Kazuki Oikawa.
svn path=/trunk/mcs/; revision=136109
2009-06-15 10:27:41 +00:00
Marek Safar
2101a3d1e7
2009-01-18 Marek Safar <[email protected] >
...
* ReaderWriterLockSlim.cs: Implemented all properties.
svn path=/trunk/mcs/; revision=123729
2009-01-18 13:24:26 +00:00