Commit Graph
128 Commits
Author SHA1 Message Date
Mark Probst 322f82badc 2009-04-21 Mark Probst <[email protected]>
* Thread.cs: Make the execution context field thread-static to
        avoid it being shared between app domains.

2009-04-21  Mark Probst  <[email protected]>

        * Environment.cs: Bump corlib version.

svn path=/trunk/mcs/; revision=132308
2009-04-21 18:39:48 +00:00
Rolf Bjarne Kvinge 42a3e10016 2009-04-20 Rolf Bjarne Kvinge <[email protected]>
* Thread.cs: For 2.1 ensure exceptions in threads are handled using the
	UnhandledException event mechanism in System.Windows.Application instead
	of crashing the application.


svn path=/trunk/mcs/; revision=132166
2009-04-20 12:57:02 +00:00
Mark Probst 7466b0e42e 2009-04-18 Mark Probst <[email protected]>
* NumberFormatter.cs: Keep the current thread's number formatter
        as a ThreadStatic member.

2009-04-18  Mark Probst  <[email protected]>

        * Thread.cs: Don't keep the current number formatter here
        because it's shared between app domains.

svn path=/trunk/mcs/; revision=132067
2009-04-17 23:32:33 +00:00
Mark Probst 88270f8ee7 Proper app domain separation regarding thread abort exception state.
2009-04-18  Mark Probst  <[email protected]>

        * Thread.cs: Make the abort exception state a GC handle, to
        properly separate AppDomains.  Add internal method for getting the
        state object.

        * ThreadAbortException.cs: Get the abort exception state via the
        method in Thread.

2009-04-18  Mark Probst  <[email protected]>

        * Environment.cs: Bump corlib version.

svn path=/trunk/mcs/; revision=132063
2009-04-17 23:01:02 +00:00
Paolo Molaro 6a71988302 Tue Sep 16 21:02:59 CEST 2008 Paolo Molaro <[email protected]>
* Thread.cs: fixed SpinWait() implementation (bug #423582).


svn path=/trunk/mcs/; revision=113209
2008-09-16 19:05:54 +00:00
Marek Safar 159314e044 Warnings cleanup
svn path=/trunk/mcs/; revision=111730
2008-08-27 18:28:16 +00:00
Marek Safar cc9c53a109 Warnings cleanup
svn path=/trunk/mcs/; revision=111713
2008-08-27 15:40:13 +00:00
Kornél Pál 2d861bf887 * Thread.cs: Implement BeginThreadAffinity and EndThreadAffinity as no-op because managed and native threads are currently bound together.
svn path=/trunk/mcs/; revision=106145
2008-06-18 18:15:24 +00:00
Zoltan Varga e492e68db8 2008-06-14 Zoltan Varga <[email protected]>
* Thread.cs: Sync layout with unmanaged side.

svn path=/trunk/mcs/; revision=105811
2008-06-13 22:45:17 +00:00
Zoltan Varga 2eacc0fdf5 2008-04-11 Zoltan Varga <[email protected]>
* Thread.cs: Make in_currentculture non-static. Fixes #378892.

svn path=/trunk/mcs/; revision=100464
2008-04-11 18:50:22 +00:00
Dick Porter 68eaed43c0 2008-04-07 Dick Porter <[email protected]>
* Thread.cs: Fix throwing of exceptions when manipulating
	ApartmentState.  Fixes part of bug 324338.



svn path=/trunk/mcs/; revision=100010
2008-04-07 11:12:10 +00:00
Eyal Alalouf 41501f96be Improve ToString perf of primitive types.
svn path=/trunk/mcs/; revision=99502
2008-04-01 11:37:11 +00:00
Massimiliano Mantione 7633bb9b56 Thread.cs: Renamed "unused6" because it will be used to hold the "mono_thread_manage" callback.
svn path=/trunk/mcs/; revision=99029
2008-03-26 13:12:22 +00:00
Paolo Molaro 5e0ee89e62 Fri Feb 22 11:23:53 CET 2008 Paolo Molaro <[email protected]>
* Thread.cs: implemented Begin/EndCriticalRegion.


svn path=/trunk/mcs/; revision=96410
2008-02-22 09:39:36 +00:00
Zoltan Varga 37ab41a282 2008-01-06 Zoltan Varga <[email protected]>
* Thread.cs (set_CurrentCulture): If the culture is read-only, cache the result
	of serializing it.
	(set_CurrentUICulture): Ditto.

svn path=/trunk/mcs/; revision=92335
2008-01-06 11:05:05 +00:00
Zoltan Varga a278bd3b4d 2008-01-03 Zoltan Varga <[email protected]>
* Thread.cs (set_CurrentCulture): Avoid the serialization overhead if
	the new culture is equal to the old one.

svn path=/trunk/mcs/; revision=92201
2008-01-03 19:05:50 +00:00
Zoltan Varga f42cbf51d2 2007-12-27 Zoltan Varga <[email protected]>
* Thread.cs: Change the type of synch_cs to an IntPtr to be in synch with the
	unmanaged definition.

svn path=/trunk/mcs/; revision=91908
2007-12-26 22:43:39 +00:00
Dick Porter 2b101808d8 2007-10-24 Dick Porter <[email protected]>
* Thread.cs: Call Thread_init on the new 2.0 constructors too.



svn path=/trunk/mcs/; revision=88120
2007-10-24 19:54:52 +00:00
Dick Porter eb888d87d3 2007-10-24 Dick Porter <[email protected]>
* Thread.cs: Assign the ManagedThreadId when it is asked for,
	rather than in the constructor, so ThreadPool threads also work.
	Fixes bug 335579 (and doesn't break 325367 or 325566)



svn path=/trunk/mcs/; revision=88077
2007-10-24 15:35:52 +00:00
Dick Porter df3e7290d7 2007-10-15 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=87515
2007-10-15 14:49:07 +00:00
Dick Porter 685b17b2cb 2007-09-25 Dick Porter <[email protected]>
* Thread.cs: Keep ManagedThreadId constant over the lifetime of a
	Thread.  Patch from [email protected] fixing bugs 325367 and
	325566.



svn path=/trunk/mcs/; revision=86337
2007-09-25 15:28:09 +00:00
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