Jérémie Laval
e61d54040f
[ReaderWriterLockSlim] Fix for #656353 . Add corresponding unit test.
...
When in SupportsRecursion mode, a test was not including proper state check for short-circuiting.
Conflicts:
mcs/class/System.Core/System.Threading/ReaderWriterLockSlim.cs
2010-12-01 14:43:58 +00:00
Jérémie Laval
44f95d3311
Fix ReaderWriterLockSlim Exit methods in SupportsRecursion mode and add corresponding unit tests
2010-11-26 10:20:13 +00:00
Jérémie Laval
3ad4bb8e3d
Turn Is*LockHeld properties into thread-specific values in ReaderWriterLockSlim. Add corresponding unit tests.
2010-09-28 13:24:25 +01:00
Jérémie Laval
f68a0cd137
Allow recursive Write + n * Read lock pattern for ReaderWriterLockSlim and add corresponding unit test
2010-09-14 16:00:04 -04:00
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