* 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
* 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
* 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
* 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
* 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
* 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
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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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