Commit Graph
107 Commits
Author SHA1 Message Date
Dick Porter fa099c86ac Back out the thread lock changes until they work
svn path=/trunk/mcs/; revision=85137
2007-08-31 15:40:49 +00:00
Dick Porter d6a38965e2 2007-08-30 Dick Porter <[email protected]>
* Thread.cs: Initialise synch_cs to null now we aren't using it as
	a monitor lock



svn path=/trunk/mcs/; revision=85074
2007-08-30 20:33:52 +00:00
Dick Porter 90542ec8a6 2007-08-10 Gert Driesen <[email protected]>
* Thread.cs: Throw ThreadStateException when retrieving ApartmentState
	or IsBackground if thread is stopped. Fixes bug #81658.

2007-08-10  Gert Driesen  <[email protected]>

	* ThreadTest.cs: Enabled test for bug #81658.


svn path=/trunk/mcs/; revision=83806
2007-08-10 10:18:07 +00:00
Zoltan Varga 126a269c29 2007-08-08 Zoltan Varga <[email protected]>
* Thread.cs: Add a fixme.

svn path=/trunk/mcs/; revision=83682
2007-08-08 17:02:06 +00:00
Jonathan Chambers 072ddf092b 2007-05-22 Jonathan Chambers <[email protected]>
* Thread.cs: Use & to check ThreadState rather than ==.
        Fixes AlbumSurfer regression.


svn path=/trunk/mcs/; revision=77799
2007-05-22 17:25:07 +00:00
Jonathan Chambers e706c6bfd2 2007-05-09 Jonathan Chambers <[email protected]>
* Thread.cs: Add ApartmentState related tests.


svn path=/trunk/mcs/; revision=77078
2007-05-09 18:34:13 +00:00
Paolo Molaro 25af0d0ca2 Tue Jan 23 17:43:50 CET 2007 Paolo Molaro <[email protected]>
* Thread.cs: mark the GC-tracked field with UIntPtr.


svn path=/trunk/mcs/; revision=71518
2007-01-23 16:44:13 +00:00
Miguel de Icaza 7ad3e574df Rationalize MonoTODO
svn path=/trunk/mcs/; revision=68718
2006-11-30 00:32:00 +00:00
Dick Porter ddde708fa6 2006-11-02 Dick Porter <[email protected]>
* Thread.cs: Use the new Interrupt and SpinWait icalls.



svn path=/trunk/mcs/; revision=67298
2006-11-02 21:15:38 +00:00
Atsushi Eno 1e2d5e614b 2004-04-04 Atsushi Enomoto <[email protected]>
* Thread.cs : base class is CriticalFinalizerObject.
	* ThreadStartException.cs : no public constructors.


svn path=/trunk/mcs/; revision=58996
2006-04-04 01:09:10 +00:00
Paolo Molaro 4393606a2a Wed Mar 29 18:29:55 CEST 2006 Paolo Molaro <[email protected]>
* Thread.cs: update for the runtime changes to culture caching.


svn path=/trunk/mcs/; revision=58740
2006-03-29 16:30:54 +00:00
Paolo Molaro 2e3ee3d2e5 Wed Mar 15 16:35:49 CET 2006 Paolo Molaro <[email protected]>
* Thread.cs: updates for LocalDataStoreSlot: we use an array as
	storage for the slots now so that LocalDataStoreSlot objects an be
	garbage collected if the user doesn't keep a reference to them.


svn path=/trunk/mcs/; revision=58020
2006-03-15 15:38:52 +00:00
Sebastien Pouliot 3a26c0494c 2005-10-06 Sebastien Pouliot <[email protected]>
* Thread.cs: Copy an existing IPrincipal to new threads. Fix bug 
	#76332.


svn path=/trunk/mcs/; revision=51332
2005-10-06 13:04:15 +00:00
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