Commit Graph
20 Commits
Author SHA1 Message Date
Rodrigo Kumpera 8a0c516a7c [corlib] Fix the mobile profile. 2014-03-07 18:00:17 -05:00
Marek Safar 4b4ddb66b3 [corlib] Improve flow of ExecutionContext (few tests taken from https://github.com/mono/mono/pull/864). Fixes #18121 and similar. 2014-03-06 19:54:06 +01:00
Marek Safar b26fc714dd Manually remove code which is disabled but compiler cannot remove automatically. 2013-03-04 09:14:08 +01:00
Rodrigo Kumpera b96d05dac3 Kill the MOONLIGHT define in corlib. 2013-02-11 16:03:28 -05:00
Sebastien Pouliot 0f2995e95e Exclude LogicalCallContext as the required remoting infrastucture not available on MonoTouch 2012-12-23 12:45:27 -05:00
Yann ROBIN 5c2e8d62de fix code according to mono coding guidelines 2012-12-10 22:37:38 +01:00
Yann ROBIN d9679bb798 fix code according to mono coding guidelines 2012-12-10 20:55:14 +01:00
Yann ROBIN 2238ba7dc0 add LogicalCallContext to ExecutionContext
Save LogicalCallContext when Capture is called

Restore LogicalCallContext on Run.

see msdn for behavior of ExecutionContext http://msdn.microsoft.com/en-us/library/h84136b2.aspx
2012-12-07 17:36:24 +01:00
Marek Safar 0781122a85 Add missing 4.0 api 2011-04-20 12:41:29 +01:00
Jb Evain ba09e4ba86 use MOONLIGHT symbol
svn path=/trunk/mcs/; revision=153658
2010-03-16 12:11:37 +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
Geoff Norton 88026a47b4 fix MONOTOUCH on trunk
svn path=/trunk/mcs/; revision=144133
2009-10-14 18:49:14 +00:00
Sebastien Pouliot f07228a460 2009-09-23 Sebastien Pouliot <[email protected]>
* ExecutionContext.cs: Don't use SecurityContext and don't expose
	AsyncFlowControl for NET_2_1
	* ThreadAbortException.cs: Remove ExceptionState from NET_2_1
	* Thread.cs: Don't expose ApartmentState and remove Suspend and
	Resume methods for NET_2_1
	* ThreadPool.cs: Remove GetAvailableThreads and Unsafe* methods
	for NET_2_1


svn path=/trunk/mcs/; revision=142481
2009-09-23 12:58:58 +00:00
Sebastien Pouliot 5d0ed14755 In System.Threading:
2009-09-21  Sebastien Pouliot  <[email protected]>

	* Thread.cs: Remove CurrentPrincipal property for NET_2_1
	* ExecutionContext.cs: Remove Run method for NET_2_1

In System.Security:
2009-09-21  Sebastien Pouliot  <[email protected]>

	* SecurityContext.cs: Don't use WindowsIdentity under NET_2_1

In System:
2009-09-21  Sebastien Pouliot  <[email protected]>

	* AppDomain.cs: Remove use of IPrincipal, Evidence and 
	PermissionSet types for NET_2_1

In .:
2009-09-21  Sebastien Pouliot  <[email protected]>

	* net_2_1_bootstrap_corlib.dll.sources, net_2_1_raw_corlib.dll.sources:
	Remove most of System.Security.Policy and System.Security.Principal
	and more of System.Security.Permissions from NET_2_1 build

In System.Security.Policy:
2009-09-21  Sebastien Pouliot  <[email protected]>

	* PolicyLevel_2_1.cs: Remove use of PolicyStatement


svn path=/trunk/mcs/; revision=142324
2009-09-21 11:54:24 +00:00
Andreas N dbd3fb665e 2008-07-03 Andreas Nahr <[email protected]>
* ThreadPool.cs:
	* LockCookie.cs:
	* Interlocked.cs:
	* ExecutionContext.cs:
	* AsyncFlowControl.cs:
	* AbandonedMutexException.cs: Fix parameter names

svn path=/trunk/mcs/; revision=107124
2008-07-02 23:55:20 +00:00
Sebastien Pouliot b2ad2763b5 2006-05-05 Sebastien Pouliot <[email protected]>
* ExecutionContext.cs: Don't capture the compressed stack unless the 
	security manager is active (this wasn't ready to be called in 
	production code).


svn path=/trunk/mcs/; revision=60298
2006-05-05 15:20:47 +00:00
Sebastien Pouliot 608b4b8629 2005-05-20 Sebastien Pouliot <[email protected]>
* AsyncFlowControl.cs: Now available, as internal, in NET_1_1. This is
	required to get some methods from SecurityContext and ExecutionContext
	working.
	* CompressedStack.cs: Now includes the current CompressedStack in a new
	Capture.
	* ExecutionContext.cs: Includes more methods in NET_1_1 to enable 
	ThreadPool.UnsafeQueueUserWorkItem to work properly (i.e. without
	stack propagation).
	* Thread.cs: Made ExecutionContext field accessible from the runtime.
	Added stack propagation when Thread.Start is called.
	* ThreadPool.cs: QueueUserWorkItem now does stack propagation (done in
	the runtime), so I "fixed" UnsafeQueueUserWorkItem not to do so.


svn path=/trunk/mcs/; revision=44818
2005-05-20 14:11:04 +00:00
Sebastien Pouliot 6e259aebea 2005-04-28 Sebastien Pouliot <[email protected]>
* AsyncFlowControl.cs: Updated wrt beta2.
	* ExecutionContext.cs: Updated wrt beta2. Class is now internal in 
	NET_1_1 to allow the compressed stack propagation to other threads.
	* CompressedStack.cs: Updated wrt beta2. Class is internal in NET_1_1 
	to allow the compressed stack propagation to other threads.
	* ContextCallback.cs: Updated wrt beta2.
	* HostExecutionContext.cs: Updated wrt beta2.
	* HostExecutionContextManager.cs: Updated wrt beta2.


svn path=/trunk/mcs/; revision=43715
2005-04-28 12:13:22 +00:00
Sebastien Pouliot 80d81ecdcd 2004-08-12 Sebastien Pouliot <[email protected]>
* CompressedStackSwitcher.cs: Added missing [ComVisible] and
	[ReliabilityContract] attributes.
	* ExecutionContext.cs: Added missing [ComVisible] and
	[Serializable] attributes.
	* HostExecutionContext.cs: Added missing [ComVisible] attribute.
	* HostExecutionContextManager.cs: Added missing [ComVisible] and
	[ReliabilityContract] attributes.
	* HostExecutionContextSwitcher.cs: Added missing Equals and
	GetHashCode methods and [ComVisible] and [ReliabilityContract] attrs.
	* ParameterizedThreadStart.cs: New delegate in NET_2_0.
	* SendOrPostCallback.cs: Added missing [ComVisible] attribute.
	* SynchronizationContext.cs: Added new (2.0 beta1) methods Copy and
	WaitHelper. Added missing [ComVisible] and [ReliabilityContract] attrs.
	* SynchronizationContextSwitcher.cs: Added missing [ComVisible] and
	[ReliabilityContract] attributes.

svn path=/trunk/mcs/; revision=32264
2004-08-12 12:53:35 +00:00
Lluis Sanchez ca0d337e32 * ExecutionContext.cs, ExecutionContextSwitcher.cs,
SynchronizationContext.cs, SynchronizationContextSwitcher.cs: Added 2.0
	  stubs.

svn path=/trunk/mcs/; revision=31536
2004-07-28 09:04:08 +00:00