Rodrigo Kumpera
d72794cced
Reorder fields to improve object layout since the runtime can't do it for corlib types.
2011-05-23 01:13:09 -03:00
Andreia Gaita
8891dba4d3
Fix for #475124 . DowngradeFromWriterLock only resets to a reader lock state
...
if the LockCookie was aquired in that state. Otherwise, it behaves as a
non-blocking ReleaseWriterLock
2011-03-17 17:56:23 +00:00
Miguel de Icaza
5e63701d4b
2009-11-02 Miguel de Icaza <[email protected] >
...
* Jumbo patch to drop support for pre-NET_2_0 code:
Remove ONLY_1_1 code
Remove NET_1_0 only code
Remove NET_2_0 defines assuming the value is true.
svn path=/trunk/mcs/; revision=145230
2009-11-02 23:22:40 +00:00
Atsushi Eno
24f421a602
2007-11-20 Atsushi Enomoto <[email protected] >
...
* ReaderWriterLock.cs : ... and avoid extra finalizer call.
svn path=/trunk/mcs/; revision=89967
2007-11-20 09:02:15 +00:00
Atsushi Eno
9d02a54a8e
2007-11-20 Atsushi Enomoto <[email protected] >
...
* ReaderWriterLock.cs : adding missing 2.0 destructor (does nothing).
svn path=/trunk/mcs/; revision=89958
2007-11-20 02:36:53 +00:00
Dick Porter
41b6a2f83b
2007-05-02 Dick Porter <[email protected] >
...
* ReaderWriterLock.cs: ReaderWriterLock derives from
CriticalFinalizerObject in the 2.0 profile
svn path=/trunk/mcs/; revision=76561
2007-05-02 10:03:23 +00:00
Dick Porter
fcc5135db0
2007-05-01 Dick Porter <[email protected] >
...
* ThreadState.cs:
* AsyncFlowControl.cs:
* Interlocked.cs:
* RegisteredWaitHandle.cs:
* TimerCallback.cs:
* ThreadStateException.cs:
* Monitor.cs:
* ThreadStart.cs:
* WaitOrTimerCallback.cs:
* LockCookie.cs:
* EventWaitHandle.cs:
* WaitHandle.cs:
* ThreadAbortException.cs:
* ThreadPriority.cs:
* ReaderWriterLock.cs:
* NativeOverlapped.cs:
* Mutex.cs:
* Overlapped.cs:
* ThreadPool.cs:
* ApartmentState.cs:
* EventResetMode.cs:
* SynchronizationLockException.cs:
* ManualResetEvent.cs:
* WaitCallback.cs:
* IOCompletionCallback.cs:
* AutoResetEvent.cs:
* AbandonedMutexException.cs:
* SendOrPostCallback.cs:
* ThreadInterruptedException.cs: Update to 2.0 profile
svn path=/trunk/mcs/; revision=76530
2007-05-01 15:28:29 +00:00
Raja R Harinath
e0cfa4925e
Set svn:eol-style=native, delete svn:executable.
...
Fix line endings of System/Decimal.cs (only actual "change" in text, to force recompile of mscorlib to reflect changes in decimal constant handling in the compiler)
svn path=/trunk/mcs/; revision=44558
2005-05-16 12:23:26 +00:00
Gonzalo Paniagua Javier
afcf29c661
2005-04-28 Gonzalo Paniagua Javier <[email protected] >
...
* ReaderWriterLock.cs: fix random ApplicationException errors. Tested
with the System.Web.Cache stress program. Patch by Eyal Alayuf
(Mainsoft). Fixes 74598.
svn path=/trunk/mcs/; revision=43757
2005-04-29 00:19:42 +00:00
Marek Safar
b20cf0cc02
removed unused variables
...
svn path=/trunk/mcs/; revision=36415
2004-11-23 06:40:55 +00:00
Duncan Mak
13d1764537
Add license and copyright to all source files in corlib
...
svn path=/trunk/mcs/; revision=29249
2004-06-11 02:09:36 +00:00
Lluis Sanchez
e4e40de014
* ReaderWriterLock.cs: More fixes: never wait where acquiring a reader lock
...
if the thread already has the lock. Added readyWaitingReaders variable to
keep track of threads ready to get the reader lock.
svn path=/trunk/mcs/; revision=25390
2004-04-13 10:28:24 +00:00
Lluis Sanchez
a7668b245f
* LockQueue.cs: Moved lockCount change inside the rwlock lock. Removed
...
lock(this) when entering the rwlock to avoid a deadlock.
* ReaderWriterLock.cs: In AcquireWriterLock, queue the thread if the queue
is not empty (even if state==0).
svn path=/trunk/mcs/; revision=25332
2004-04-11 14:17:06 +00:00
Jackson Harper
9a9381e6a3
* ReaderWriterLock.cs: Fix tyop
...
svn path=/trunk/mcs/; revision=25227
2004-04-08 19:20:10 +00:00
Lluis Sanchez
0f75c6d4a4
* ReaderWriterLock.cs: Changed some methods to private.
...
* WaitHandle.cs: In Wait methods, release the synchronization context when
exitContext is true.
svn path=/trunk/mcs/; revision=25215
2004-04-08 11:37:30 +00:00
Lluis Sanchez
02524eecbd
* ReaderWriterLock.cs: When a thread holds a writer lock, a call to
...
AcquireReaderLock works like a call to AcquireWriterLock.
svn path=/trunk/mcs/; revision=25146
2004-04-07 09:04:57 +00:00
Lluis Sanchez
47a9988450
* LockCookie.cs: Keep in this class the count of reader or writer locks
...
for a thread, not only whether it has locks or not.
* LockQueue.cs: Added property for checking if a thread is waiting in
the queue. Wait now returns a boolean that set to false on timeout
expiration.
* ReaderWriterLock.cs: Started fixing bugs but I had to rewrite a lot of it.
The main change is that now it keeps a reader lock count for each
thread. This is needed since methods like ReleaseLock or
UpgradeToWriterLock need to return a per-thread status in LockCookie.
Also added support for recursive writer-lock requests.
svn path=/trunk/mcs/; revision=25059
2004-04-05 22:07:58 +00:00
Jackson Harper
63fd13ce70
* LockCookie.cs: Add some fields for restoring locks.
...
* ReaderWriterLock.cs: Implement
* LockQueue.cs: New File - used for queueing thread locks in
ReaderWriterLock.
svn path=/trunk/mcs/; revision=23348
2004-02-23 07:46:00 +00:00
Ravi Pratap M
0f04441d63
002-01-05 Ravi Pratap <[email protected] >
...
* AutoResetEvent.cs, ManualResetEvent.cs, Monitor.cs : MonoTODO
decoration.
* Mutex.cs, Overlapped.cs, ReaderWriterLock.cs, RegisteredWaitHandle.cs,
Thread.cs, ThreadAbortException.cs, ThreadPool.cs, Timer.cs, WaitHandler.cs : Ditto.
svn path=/trunk/mcs/; revision=1850
2002-01-05 06:26:59 +00:00
Dick Porter
58b4ee1b2c
System.Threading class stubs.
...
svn path=/trunk/mcs/; revision=810
2001-09-13 12:47:25 +00:00