Commit Graph
19 Commits
Author SHA1 Message Date
Martin Baulig 988f522b36 Put back unsupported EventWaitHandle and Mutex constructors. 2013-03-12 22:13:39 -04:00
Martin Baulig 2c8d10572e Oops, fix the mobile build. 2013-03-12 21:42:27 -04:00
Martin Baulig 03bb7b498a System.Threading.{Semaphore|EventWaitHandle|Mutex}.TryOpenExisiting(). 2013-03-12 21:15:55 -04:00
James Bellinger c6f901c2cf Mutexes and event wait handles now work, with tests included. Fixed the exception on failure for MutexSecurity. 2012-07-07 18:45:26 -04: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
Sebastien Pouliot 9f87d8f285 2009-09-20 Sebastien Pouliot <[email protected]>
* EventWaitHandle.cs: Remove AccessControl usage for NET_2_1
	* Mutex.cs: Remove some ctors and AccessControl usage for NET_2_1
	* NativeEventCalls.cs: Remove AccessControl usage for NET_2_1


svn path=/trunk/mcs/; revision=142281
2009-09-20 16:38:40 +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
Dick Porter 1e147f0716 2007-03-27 Dick Porter <[email protected]>
* Mutex.cs: Throw ApplicationException if ReleaseMutex() fails.
	Fixes bug 79358.

2007-03-27  Dick Porter  <[email protected]>

	* Environment.cs: Increment mono_corlib_version;



svn path=/trunk/mcs/; revision=75019
2007-03-27 14:35:36 +00:00
Dick Porter 8265935e1b 2005-12-23 Dick Porter <[email protected]>
* EventWaitHandle.cs: 
        * Mutex.cs: Implement OpenExisting

        * NativeEventCalls.cs: Add OpenEvent icall for OpenExisting in
        2.0.  Add a "created" boolean out parameter to CreateEvent icall.

        * ManualResetEvent.cs: 
        * AutoResetEvent.cs: Update CreateEvent icall signature (now has
        "created" boolean out parameter.)

2005-12-23  Dick Porter  <[email protected]>

        * Semaphore.cs: Implement OpenExisting

2005-12-23  Dick Porter  <[email protected]>

        * MutexRights.cs: New for 2.0 profile

2005-12-23  Dick Porter  <[email protected]>

        * SemaphoreRights.cs: Make the [Flags] enum more obvious

2005-12-23  Dick Porter  <[email protected]>

        * SemaphoreTest.cs: Enable another test

2005-12-23  Dick Porter  <[email protected]>

        * corlib.dll.sources: Added System.Security.AccessControl.MutexRights



svn path=/trunk/mcs/; revision=54801
2005-12-23 20:29:06 +00:00
Dick Porter f6ce484bf8 2005-12-17 Dick Porter <[email protected]>
* ThreadStartException.cs: 
        * EventWaitHandle.cs: 
        * EventResetMode.cs: 
        * AbandonedMutexException.cs: New for 2.0 profile

        * ThreadState.cs: 
        * Interlocked.cs: 
        * RegisteredWaitHandle.cs: 
        * Monitor.cs: 
        * ThreadPriority.cs: 
        * Mutex.cs: 
        * ManualResetEvent.cs: 
        * AutoResetEvent.cs: Updated for 2.0 profile

2005-12-17  Dick Porter  <[email protected]>

        * EventWaitHandleRights.cs: New for 2.0 profile

        * MutexSecurity.cs: 
        * EventWaitHandleSecurity.cs: 
        * CommonObjectSecurity.cs: 
        * NativeObjectSecurity.cs: 
        * ObjectSecurity.cs: New partial stub for 2.0 profile

2005-12-17  Dick Porter  <[email protected]>

        * corlib.dll.sources: Added in System.Security.AccessControl:
        CommonObjectSecurity.cs, EventWaitHandleRights.cs,
        EventWaitHandleSecurity.cs, ObjectSecurity.cs, MutexSecurity.cs,
        NativeObjectSecurity.cs.  Added in System.Threading:
        AbandonedMutexException.cs, EventResetMode.cs, EventWaitHandle.cs,
        ThreadStartException.cs



svn path=/trunk/mcs/; revision=54567
2005-12-17 18:17:58 +00:00
Zoltan Varga 23deaa6e98 2005-06-06 Zoltan Varga <[email protected]>
* Thread.cs Mutex.cs Monitor.cs: Add some missing 2.0 attributes.

svn path=/trunk/mcs/; revision=45489
2005-06-06 14:14:42 +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
Sebastien Pouliot 99a2b069e9 2005-03-24 Sebastien Pouliot <[email protected]>
* CompressedStack.cs: Added LinkDemand for UnmanagedCode and ECMA 
	public key on GetCompressedStack method.
	* Mutex: Added LinkDemand for UnmanagedCode to create named (system 
	wide) mutexes.
	* Thread.cs: Added LinkDemand for ECMA public key on [Get|Set]
	CompressedStack methods.
	* WaitHandle.cs: Added LinkDemand and InheritanceDemand for 
	UnmanagedCode on set Handle property.


svn path=/trunk/mcs/; revision=42209
2005-03-24 13:50:32 +00:00
Dick Porter 128b0c1159 2004-06-24 Dick Porter <[email protected]>
* Mutex.cs: Implement the createdNew parameter

svn path=/trunk/mcs/; revision=30310
2004-06-24 14:21:03 +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
Dick Porter c77d9a071f 2002-09-11 Dick Porter <[email protected]>
* Mutex.cs:
	* ManualResetEvent.cs:
	* AutoResetEvent.cs: Use the WaitHandle.Handle property instead of
	the private field

	* WaitHandle.cs: Hide the os_handle field and the WaitOne_internal
	method

svn path=/trunk/mcs/; revision=7361
2002-09-11 15:01:31 +00:00
Veronica De Santis 169190f49b 2002-01-16 Veronica De Santis <veron78@@interfree.it>
* icall.h : Added the internal calls mapping for CreateMutex_internal
	  	    and ReleaseMutex_internal.

	* threads.h : Added the prototype of mutexes internal calls.

	* threads.c : Added the implementations of mutexes internal calls.

	* WaitHandle.cs : Renamed handle to os_handle and make it protected
	                  instead of private.
        * Mutex.cs : Write the System.Threading.Mutex methods ( constructors
              	     and the ReleaseMutex)

svn path=/trunk/mcs/; revision=2010
2002-01-16 21:08:04 +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