Commit Graph
4 Commits
Author SHA1 Message Date
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 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
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