Commit Graph
94 Commits
Author SHA1 Message Date
Sebastien Pouliot 00a61cceaf 2005-10-06 Sebastien Pouliot <[email protected]>
* Thread.cs: Added new attributes, [ReliabilityContract] for 
	destructor and [Obsolete] for [Get|Set]CompressedStack, that were 
	added in 2.0 RC.


svn path=/trunk/mcs/; revision=51331
2005-10-06 12:53:38 +00:00
Zoltan Varga d19f495c6c 2005-09-11 Zoltan Varga <[email protected]>
* Thread.cs (MemoryBarrier): Make this an icall.

svn path=/trunk/mcs/; revision=49895
2005-09-11 11:02:27 +00:00
Zoltan Varga be3d165648 2005-09-10 Zoltan Varga <[email protected]>
* Thread.cs (Interrupt): Make this throw a NotImplementedException.

svn path=/trunk/mcs/; revision=49874
2005-09-10 20:15:48 +00:00
Dick Porter 53471aaa22 2005-08-19 Dick Porter <[email protected]>
* Thread.cs: Reserve 64 bits for the thread ID.



svn path=/trunk/mcs/; revision=48576
2005-08-19 20:38:36 +00:00
Gonzalo Paniagua Javier d02b1d8a50 2005-06-07 Gonzalo Paniagua Javier <[email protected]>
* System.Threading/Thread.cs: check that the culture is valid for
	formatting (ie, (!neutral || invariant)).

	* System.Globalization/CultureInfo.cs: added internal method to check
	for a culture valid for formatting. Correctly get the calendar type.
	Before it was always type 0. Thanks to Mcs for pointing this out.


svn path=/trunk/mcs/; revision=45611
2005-06-08 03:11:20 +00:00
Sebastien Pouliot 7d35f59e26 2005-06-07 Sebastien Pouliot <[email protected]>
* Thread.cs: Added _Thread interface (and members) and a few missing
	attributes (for both 1.1 and 2.0).


svn path=/trunk/mcs/; revision=45569
2005-06-07 11:55:43 +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
Ben Maurer 1103b98672 2005-05-26 Ben Maurer <[email protected]>
* Thread.cs: Use a static object for a lock rather than
	typeof(Thread).


svn path=/trunk/mcs/; revision=45077
2005-05-26 20:21:16 +00:00
Sebastien Pouliot f19f97a6ce Thread.cs: Removed #pragma which aren't supported by CSC 7.x.
svn path=/trunk/mcs/; revision=44930
2005-05-24 15:18:04 +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
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
Miguel de Icaza 06f6773ef2 2005-05-19 Miguel de Icaza <[email protected]>
* TermInfoDriver.cs: Removed warning.

	* Array.cs (Resize<T>, TrueForAll<T>, ConvertAll<TInput,TOutput>,
	FindLastIndex<T>: Parameter names are normative. 	
	Fix coding style ("Method<T>" not "Method <T>")
	Throw argument exceptions per argument.
	
	(FindAll): Fix bug, actually return the values that were computed,
	not a short version of the original array.

2005-05-19  Miguel de Icaza  <[email protected]>

	* Thread.cs: REmove warnings.



svn path=/trunk/mcs/; revision=44731
2005-05-19 05:55:52 +00:00
Gonzalo Paniagua Javier bfa50fb63c 2005-05-16 Gonzalo Paniagua Javier <[email protected]>
* Thread.cs: first check for null, then set in_currentculture.


svn path=/trunk/mcs/; revision=44592
2005-05-16 20:39: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
Lluis Sanchez b7b66f601f 2005-05-12 Lluis Sanchez Gual <[email protected]>
* Thread.cs: Moved all checks done inside sync_lock to unmanaged code.
	Merged Thread_internal and Start_internal into a single icall, which
	does all work.

	based on patch by Sbastien Robitaille

svn path=/trunk/mcs/; revision=44427
2005-05-12 09:36:01 +00:00
Sebastien Pouliot d465dc4044 Oops, forgot the important fix. Return a copy (not the original) CompressedStack.
svn path=/trunk/mcs/; revision=44392
2005-05-11 15:17:37 +00:00
Sebastien Pouliot d2fd4e1398 2005-05-11 Sebastien Pouliot <[email protected]>
* CompressedStack.cs: Allow merging of an existing CompressedStack
	with the actual stack of the current Thread.
	* Thread.cs: GetCompressedStack and SetCompressedStack are public 
	before 2.0 but couldn't be seen with mono-api-info because of it's 
	LinkDemand for the ECMA public key. Removed unused CompressedStack
	private field (now part of the ExecutionContext).


svn path=/trunk/mcs/; revision=44391
2005-05-11 15:15:01 +00:00
Sebastien Pouliot 44f58bea8c 2005-04-28 Sebastien Pouliot <[email protected]>
* Thread.cs: Added property to get the ExecutionContext in 2.0. Fixed
	GetCompressedStack and made SetCompressedStack available (as internal)
	before NET_2_0.


svn path=/trunk/mcs/; revision=43721
2005-04-28 13:30:19 +00:00
Sebastien Pouliot 14ad7cf334 2005-04-28 Sebastien Pouliot <[email protected]>
* Thread.cs: Added internal property to get the ExecutionContext.

svn path=/trunk/mcs/; revision=43716
2005-04-28 12:18:44 +00:00
Zoltan Varga 920feb07d2 2005-04-19 Zoltan Varga <[email protected]>
* Thread.cs: Add some unused fields.

svn path=/trunk/mcs/; revision=43296
2005-04-19 20:53:39 +00:00
Miguel de Icaza 3953436009 Second patch of patch from Zoltan Varga for bug:
http://bugzilla.ximian.com/show_bug.cgi?id=71274

svn path=/trunk/mcs/; revision=43283
2005-04-19 19:09:54 +00:00
Gonzalo Paniagua Javier f5faf8be5d 2005-04-07 Gonzalo Paniagua Javier <[email protected]>
* Thread.cs: clear the Unstarted bit before calling Start_internal.
	Fixes bug #72738.


svn path=/trunk/mcs/; revision=42664
2005-04-07 23:47:56 +00:00
Ben Maurer 4c0c7d2b7c 2005-04-04 Ben Maurer <[email protected]>
* Thread.cs: Do argument checking for Current[UI]Culture to make
	the exception more clear for a null value being set.


svn path=/trunk/mcs/; revision=42535
2005-04-04 19:23:07 +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
Zoltan Varga b9fe26de3b 2005-03-10 Zoltan Varga <[email protected]>
* Thread.cs: Make slothash a ThreadStatic field. Fixes #65414.

svn path=/trunk/mcs/; revision=41651
2005-03-10 16:23:50 +00:00
Paolo Molaro 47ea5846d5 Tue Feb 15 18:19:11 CET 2005 Paolo Molaro <[email protected]>
* Thread.cs: make the slothash a field in MonoThread.


svn path=/trunk/mcs/; revision=40706
2005-02-15 17:03:17 +00:00
Sebastien Pouliot 83fb9ee0dc 2005-01-27 Sebastien Pouliot <[email protected]>
* Overlapped.cs: Added check for ControlPolicy and ControlEvidence for
	Unsafe pack. Added MonoTODO for missing security stack propagation.
	* Thread.cs: Add security checks for ControlThread.
	* ThreadPool.cs: Added declarative security checks.


svn path=/trunk/mcs/; revision=39656
2005-01-27 18:15:44 +00:00
Miguel de Icaza a1e6e64402 Must not throw
svn path=/trunk/mcs/; revision=39094
2005-01-18 15:11:20 +00:00
Paolo Molaro 59bea4b831 Thu Jan 13 18:15:32 CET 2005 Paolo Molaro <[email protected]>
* Thread.cs: implement stacksize and parameterized
	start functionality (requires matching runtime).


svn path=/trunk/mcs/; revision=38882
2005-01-13 17:09:11 +00:00
Sebastien Pouliot c71dad3b2f 2004-12-20 Sebastien Pouliot <[email protected]>
* CompressedStack.cs: Implemented most todo so it's usable for CAS.
	* CompressedStackSwitcher.cs: Implemented most todo.
	* Thread.cs: Implement support for getting/setting CompressedStack.


svn path=/trunk/mcs/; revision=37974
2004-12-20 15:29:02 +00:00
Ben Maurer 2b4b651057 some warning silence
svn path=/trunk/mcs/; revision=37938
2004-12-19 18:21:41 +00:00
Zoltan Varga 17a9b88c82 2004-12-15 Zoltan Varga <[email protected]>
* Thread.cs: Change type of culture_info and ui_culture_info to 
	IntPtr. Implement correct culture handling for the UI culture as
	well.

svn path=/trunk/mcs/; revision=37808
2004-12-15 21:00:48 +00:00
Gonzalo Paniagua Javier fdb5a5c6f1 this never happened. Forget it.
svn path=/trunk/mcs/; revision=37784
2004-12-15 14:22:05 +00:00
Gonzalo Paniagua Javier b4d8bb72e5 2004-12-15 Gonzalo Paniagua Javier <[email protected]>
* Thread.cs: don't bother serializing if the CultureInfo we're setting
	has the same LCID as the CurrentCulture.


svn path=/trunk/mcs/; revision=37781
2004-12-15 13:11:33 +00:00
Zoltan Varga f54f60ad51 2004-12-14 Zoltan Varga <[email protected]>
* Thread.cs: Optimize CurrentCulture to avoid initializing the
	serialization infrastructure in the common case when the culture is
	not set explicitly.

svn path=/trunk/mcs/; revision=37747
2004-12-14 13:46:26 +00:00
Zoltan Varga 626977b30a 2004-12-06 Zoltan Varga <[email protected]>
* Thread.cs: Add new fields 'serialized_culture_info{_len}'.
	
	* Thread.cs (CurrentCulture): Fix leaking of culture info objects 
	across appdomains. Partially fixes #50049.

svn path=/trunk/mcs/; revision=37201
2004-12-06 17:21:36 +00:00
Sebastien Pouliot 610037a3ca 2004-09-04 Sebastien Pouliot <[email protected]>
* Thread.cs: Changed an imperative security demand to declarative
	(unsupported) so it doesn't (for now) call the security runtime.

svn path=/trunk/mcs/; revision=33355
2004-09-04 23:18:56 +00:00
Sebastien Pouliot 5e8b8d82af 2004-08-20 Sebastien Pouliot <[email protected]>
* Thread.cs: Added Fx 2.0 properties/methods/attributes.

svn path=/trunk/mcs/; revision=32588
2004-08-20 18:19:00 +00:00
Dick Porter 23c64685e5 Revert this part, it broke things.
svn path=/trunk/mcs/; revision=31188
2004-07-15 17:23:30 +00:00
Dick Porter f614b228dc 2004-07-15 Dick Porter <[email protected]>
* Thread.cs: Hold a lock in GetNamedDataSlot.  Fixes bug 61582,
	based on patch by S�bastien Robitaille
	([email protected]).  Also fix instances of
	lock(typeof(Thread)) to lock a private object instead.

svn path=/trunk/mcs/; revision=31181
2004-07-15 14:28:40 +00:00
Gert Driesen 2eec8e2a38 * Thread.cs: changed return type of VolatileRead to UIntPtr
* ThreadPool.cs: set return type of SetMinThreads to bool

svn path=/trunk/mcs/; revision=29622
2004-06-15 17:55:07 +00:00
Lluis Sanchez 1ac40a0de2 * Thread.cs: Added new fields to keep sync with MonoThread.
Removed state changes in Sleep and Join. The state change is now done
	  in the icall. For accessing to internal fields lock with synch_lock
	  instead of this, which can be a source of deadlocks.

svn path=/trunk/mcs/; revision=29605
2004-06-15 15:56:24 +00:00
Miguel de Icaza d6d643c4fb Remove FIXMEs: they are flagged as TODOs
svn path=/trunk/mcs/; revision=29369
2004-06-11 18:40:10 +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
Gonzalo Paniagua Javier 50abbf1102 2004-06-11 Gonzalo Paniagua Javier <[email protected]>
* Thread.cs:
	(CurrentPrincipal): lock on CurrentThread, not typeof (Thread) and set
	the thread IPrincipal if we get it from the AppDomain.

svn path=/trunk/mcs/; revision=29247
2004-06-11 01:18:21 +00:00
Lluis Sanchez 49228e033d * Thread.cs: Some fixes in Abort. Implemented Suspend and Resume.
Added internal interruption_requested field.

svn path=/trunk/mcs/; revision=27775
2004-05-20 20:02:44 +00:00
Sebastien Pouliot 29ddfa3b81 2004-05-13 Sebastien Pouliot <[email protected]>
* Thread.cs: Added missing MemoryBarrier (only for 1.1) and SpinWait to please
	corcompare. Both throw a NotImplementedException.
	* ThreadPool.cs: Added missing UnsafeRegisterWaitForSingleObject methods (4
	overloads) to please corcompare. All throw a NotImplementedException.

svn path=/trunk/mcs/; revision=27293
2004-05-13 17:47:00 +00:00
Jackson Harper a0c6e79318 * Thread.cs: Use new culture info method for constructing the
current culture.

svn path=/trunk/mcs/; revision=25181
2004-04-07 18:58:44 +00:00
Zoltan Varga b28795d5dc 2004-02-09 Zoltan Varga <[email protected]>
* Thread.cs: Add fields added to unmanaged MonoThread here as well.
	Fixes random errors caused by memory corruption.

svn path=/trunk/mcs/; revision=22906
2004-02-09 18:33:36 +00:00
Zoltan Varga 4afdba1d61 2004-02-06 Zoltan Varga <[email protected]>
* Thread.cs: Store the thread name in unmanaged memory, since the
	thread object is shared between appdomains.

svn path=/trunk/mcs/; revision=22825
2004-02-06 11:08:14 +00:00