* 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-10-21 Sebastien Pouliot <[email protected]>
* WaitHandle.cs: Add missing validations for 'millisecondsTimeout'
in Wait[One|Any|All]. Also call the overloaded (bool) methods for
WaitAll to reduce code duplication.
In .:
2009-10-21 Sebastien Pouliot <[email protected]>
* corlib_test.dll.sources: Add System.Threading/WaitHandleTest.cs
In Test/System.Threading:
2009-10-21 Sebastien Pouliot <[email protected]>
* WaitHandleTest.cs: New. Add test cases for Wait[One|All|Any]
methods overloads (at least the one present in Silverlight 2)
svn path=/trunk/mcs/; revision=144529
* WaitHandle.cs (Handle): in the 2.0 profile, explicitly dispose
the old SafeWaitHandle, do not wait for the finalizer to run;
Take ownership of the handle; The docs did not say that
assigning to this value would lead to a leak, the docs said that
in the 1.0 and 1.1 profiles assigning to this property might lead
to a leak. My mistake.
Fixes: 82134
svn path=/trunk/mcs/; revision=82258
SafeWaitHandle support for WaitHandles (2.0)
A few APIs implemented from Marshal.
2006-12-11 Miguel de Icaza <[email protected]>
* WaitHandle.cs: In 2.0 use SafeWaitHandles and the SafeWaitHandle
patterns instead of using directly the IntPtr Handle.
Refactor the code to reuse as much as possible, and follow the new
conventions where appropriate.
2006-12-15 Miguel de Icaza <[email protected]>
* Marshal.cs (SecureStringToCoTaskMemAnsi, SecureStringToBSTR,
SecureStringToCoTaskMemUnicode, ZeroFreeCoTaskMemAnsi,
ZeroFreeCoTaskMemUnicode, ZeroFreeGlobalAllocAnsi,
ZeroFreeGlobalAllocUnicode): Implement.
(StringToCoTaskAuto): return the same as Ansi.
The ANSI code is out of sync with Mono, which treats ANSI as
UTF-8.
Code formatting changes
svn path=/trunk/mcs/; revision=69552
* WaitHandle.cs (CheckArray): Throw NotSupportedException if the
current thread is marked with the STAThreadAttribute. Fixes bug
#78455.
svn path=/trunk/mcs/; revision=62144
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
* 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
* AutoResetEvent.cs (Set, Reset): If we are disposed, throw a
ObjectDisposedEvent, helped track the WebConnection destructor
issue.
svn path=/trunk/mcs/; revision=37157
be public.
* StreamReader.cs (Initialize): This method is not exposed in the
API, mark as internal.
* SignatureHelper.cs: This class does not have the
SerializableAttribute.
* WaitHandle.cs (CheckDisposed): This method is not in the public
API, mark it as 'internal'.
* Environment.cs (SpecialFolder): Added 'Desktop' and 'MyComputer'
as values for NET_1_1.
(GetFolderPath): Return the empty string ("") for values of
SpecialFolder that have no corresponding equivalents in
Linux. Return "$HOME/Desktop" for SpecialFolder.DesktopDirectory
and "$HOME" for SpecialFolder.Personal.
* IntPtr.cs (GetObjectData): Mark it as an interface
implementation, instead of a public method.
* Guid.cs (NewGuid): Remove MonoTODOAttribute.
* TypeLoadException.cs (GetObjectData):
Create stubs for the fields that are being serialized.
* UIntPtr.cs: Removed erroneous CLSCompliantAttributes.
svn path=/trunk/mcs/; revision=16594
* ThreadPool.cs: correctly create a TimeSpan with provided the number of
milliseconds.
* WaitHandle.cs: fixes for WaitAny/All and TimeSpan.
svn path=/trunk/mcs/; revision=15535
* Monitor.cs:
* Thread.cs:
* ThreadPool.cs:
* Timer.cs:
* WaitHandle.cs: Use TotalMilliseconds to convert a TimeSpan to
ms, not Milliseconds.
svn path=/trunk/mcs/; revision=9533
* Mutex.cs:
* ManualResetEvent.cs:
* AutoResetEvent.cs: Use the WaitHandle.Handle property instead of
the private field
* WaitHandle.cs: Hide the os_handle field and the WaitOne_internal
method
svn path=/trunk/mcs/; revision=7361
* icall.h : Added the internal calls mapping for CreateMutex_internal
and ReleaseMutex_internal.
* threads.h : Added the prototype of mutexes internal calls.
* threads.c : Added the implementations of mutexes internal calls.
* WaitHandle.cs : Renamed handle to os_handle and make it protected
instead of private.
* Mutex.cs : Write the System.Threading.Mutex methods ( constructors
and the ReleaseMutex)
svn path=/trunk/mcs/; revision=2010
* Linux.cs: IO implemented with file handles with internal calls,
rather than casting file descriptors for C library p/invokes.
Implemented Get/Set Creation/LastAccess/LastWrite TimeFile
functions.
2001-12-11 Dick Porter <[email protected]>
* FileStream.cs: Use handles rather than casting file descriptors.
Added Handle property.
2001-12-11 Dick Porter <[email protected]>
* DateTime.cs: Implemented FromFileTime() and ToFileTime()
* Console.cs: Use handles rather than casting file descriptors
2001-12-11 Dick Porter <[email protected]>
* WaitHandle.cs: Implemented WaitAll(), WaitAny() and WaitOne() as
internal calls.
svn path=/trunk/mcs/; revision=1557