Commit Graph
31 Commits
Author SHA1 Message Date
Harry Glinos 245e3c11fa Implemented System.Threading.Monitor.IsEntered 2013-12-16 23:23:02 -06:00
Martin Baulig d54fac4349 Minor .NET 4.5 API fixes. 2013-03-12 21:15:56 -04:00
Rodrigo Kumpera 1b92a4148c Since MOBILE implies NET_4_* now, take this into account and simplify our ifdefs. 2013-02-11 18:42:18 -05:00
Rodrigo Kumpera b96d05dac3 Kill the MOONLIGHT define in corlib. 2013-02-11 16:03:28 -05:00
Sebastien Pouliot 2ce9fc1b0e Ensure consistency when 'emitContext == true' is used in MONOTOUCH profile (since it won't work when the linker is enabled). Fix bug #1144 2011-10-05 17:30:26 -04:00
Geoff Norton 83e999b7d7 Add pfx to the mobile profile 2011-01-25 01:51:17 -05:00
Rodrigo Kumpera e07d43896e Implemenent v4 Monitor::TryEnter overloads.
* Monitor.cs (TryEnter): Implement v4 overloads that take
	a "ref book lookTaken" var. Setting this flag must be done
	in the runtime to avoid async exceptions.

	* Monitor.cs (Enter): Fix v4 overload to be async exception
	safe.

	* monitor.c: New icall for the above.

	Fixes #649159
2010-10-26 18:53:28 -02:00
Sebastien Pouliot 67f3a048dc 2010-03-23 Sebastien Pouliot <[email protected]>
* Monitor.cs: Implement new NET_4_0 (and SL4) Enter overload 
	required to run some DRT tests (e.g. 7007)


svn path=/trunk/mcs/; revision=154067
2010-03-23 15:48: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
Sebastien Pouliot cfc8c38546 In System.Threading:
2009-10-22  Sebastien Pouliot  <[email protected]> 

	* Monitor.cs: Fix validations for TryEnter and Wait. Reduce 
	duplicated code between overloads.

In Test/System.Threading:
2009-10-22  Sebastien Pouliot  <[email protected]> 

	* MonitorTest.cs: Mark existing tests as "NotWorking" since they
	fail in MS FX2 (maybe they worked in 1.x?). Add more test cases
	to validate the TryEnter and Wait overloaded methods.


svn path=/trunk/mcs/; revision=144627
2009-10-22 11:51:31 +00:00
Zoltan Varga 9a8a68aeee 2008-06-07 Zoltan Varga <[email protected]>
* Monitor.cs: Implement Enter/Exit directly as icalls without managed wrapper
	methods.

svn path=/trunk/mcs/; revision=105198
2008-06-06 22:02:33 +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
Alp Toker 1fea2a3b9c 2007-04-03 Alp Toker <[email protected]>
* Monitor.cs: Class is static in 2.0.


svn path=/trunk/mcs/; revision=75326
2007-04-03 08:26:53 +00:00
Miguel de Icaza 82d4ad43b0 2006-02-09 Miguel de Icaza <[email protected]>
* Monitor.cs: Patch from Thong Nguyen, Wait (.., Timeout) method
	should allow a -1 (Timeout.Infinite) to mean indefinite wait (the
	code already supported this.

	Removed also a LAMESPEC for missing argument checking in Wait with
	the int argument.
	
	Fixed the use of exceptions.

svn path=/trunk/mcs/; revision=56742
2006-02-10 01:20:37 +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
Sebastien Pouliot 80a0e22519 2005-05-22 Sebastien Pouliot <[email protected]>
* corlib.dll.sources: Renamed CER to Cer to match 2.0 beta2.


svn path=/trunk/mcs/; revision=44891
2005-05-22 15:20:04 +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
Zoltan Varga c36a4fd245 2005-02-21 Zoltan Varga <[email protected]>
* Monitor.cs Interlocked.cs: Add net 2.0 ReliabilityContractAttributes.

svn path=/trunk/mcs/; revision=41003
2005-02-21 16:09:50 +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 24b16194a7 * Monitor.cs: In Wait(), release the synchronization context when
exitContext is true.

svn path=/trunk/mcs/; revision=25092
2004-04-06 14:11:22 +00:00
Jackson Harper 475a0e369d * Monitor.cs: Fix spelleng.
svn path=/trunk/mcs/; revision=23271
2004-02-20 02:50:58 +00:00
Paolo Molaro de705e73e7 Mon May 19 09:07:45 CEST 2003 Paolo Molaro <[email protected]>
* Monitor.cs: removed test_owner, the check is already done in the
	icall.

svn path=/trunk/mcs/; revision=14690
2003-05-19 07:16:29 +00:00
Dick Porter ebcbf2b2fc 2003-02-11 Dick Porter <[email protected]>
* Monitor.cs: Infinite wait is Infinite, not 0 ms

svn path=/trunk/mcs/; revision=11484
2003-02-11 15:11:50 +00:00
Dick Porter 21374e28f0 2002-12-10 Dick Porter <[email protected]>
* Monitor.cs:
	* Thread.cs:
	* ThreadPool.cs:
	* Timer.cs:
	* WaitHandle.cs: Use TotalMilliseconds to convert a TimeSpan to
	ms, not Milliseconds.

svn path=/trunk/mcs/; revision=9533
2002-12-10 18:02:55 +00:00
Piers Haken 84187bf9a6 fixed member accessibility to match MS (corcompare).
svn path=/trunk/mcs/; revision=3531
2002-04-01 06:07:43 +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 d3f63d2d18 2001-11-26 Dick Porter <[email protected]>
* Thread.cs: DataSlot uses a single system TLS slot, and a
	hashtable per thread.  Some minor changes to reflect the new
	internal calls using the new IO library, and the newly-supported
	bool returns from internal calls.

	* Monitor.cs: Use bool returns from internal calls now they are
	supported by the runtime.  Coalesce enter with the try_enter
	internal call.

2001-11-26  Dick Porter  <[email protected]>

	* LocalDataStoreSlot.cs: No need to delete a system TLS slot in
	the finalise routine any more

svn path=/trunk/mcs/; revision=1441
2001-11-26 13:17:57 +00:00
Dick Porter 50240505c6 2001-10-03 Dick Porter <[email protected]>
* Monitor.cs: Implemented all methods except the two Wait()
	methods that take boolean parameters

svn path=/trunk/mcs/; revision=1070
2001-10-04 09:44:14 +00:00
Dick Porter 1046a5b8b8 2001-09-28 Dick Porter <[email protected]>
* Thread.cs: Implemented AllocateDataSlot(),
	AllocateNamedDataSlot(), FreeNamedDataSlot(), GetData(),
	GetNamedDataSlot(), SetData(), IsBackground.  Reworked Thread()
	and Start() to avoid a race condition. Added thread-safe state
	changing private operations.

	* Monitor.cs: Comment out the GetType() calls because it isn't implemented yet

2001-09-28  Dick Porter  <[email protected]>

	* LocalDataStoreSlot.cs: Implemented

svn path=/trunk/mcs/; revision=1025
2001-09-28 13:38:52 +00:00
Dick Porter 58b4ee1b2c System.Threading class stubs.
svn path=/trunk/mcs/; revision=810
2001-09-13 12:47:25 +00:00