* 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
* 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
* Timer.cs: rewrote to use threadpool threads to invoke the callbacks,
avoid Thread.Abort and Thread.Interrupt and use a single scheduler
thread, partially from the patch of Rafael Ferreira in bug #315999.
Fixes bug #315999, #332206.
svn path=/trunk/mcs/; revision=87565
* 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
* SynchronizationContext.cs: Implement SetSynchronizationContext.
2007-09-25 Jonathan Pobst <[email protected]>
* AsyncOperationManager.cs: Tie the SynchronizationContext here to
SynchronizationContext.Current.
2007-09-25 Jonathan Pobst <[email protected]>
* AsyncOperationManagerTest.cs: Add test for SynchronizationContext.
2007-09-25 Jonathan Pobst <[email protected]>
* System_test.dll.sources: Added AsyncOperationManagerTest.cs.
svn path=/trunk/mcs/; revision=86329
* Timer.cs: Only hold a WeakReference to the runner thread, to
work around an issue when finalizing at shutdown or (I think)
appdomain unload. (Basically, the Thread was being finalized
first, but the Timer's finalizer was still trying to reference it
subsequently.)
svn path=/trunk/mcs/; revision=85425
* 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
* IdentityReference.cs, SecurityIdentifier.cs, NTAccount.cs: Do
not recurse infinitely as reported by Jesse Jones, the problem was
the comparison to null.
svn path=/trunk/mcs/; revision=82912
* 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
* ExecutionContext.cs: Don't capture the compressed stack unless the
security manager is active (this wasn't ready to be called in
production code).
svn path=/trunk/mcs/; revision=60298
* Timer.cs : avoid NullReferenceException when it is already disposed.
Patch by [email protected]. Fixed bug #78208.
svn path=/trunk/mcs/; revision=60075
* 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
* Monitor.cs: Patch from Thong Nguyen, Wait (.., Timeout) method
should allow a -1 (Timeout.Infinite) to mean indefinite wait (the
code already supported this.
Removed also a LAMESPEC for missing argument checking in Wait with
the int argument.
Fixed the use of exceptions.
svn path=/trunk/mcs/; revision=56742
* EventWaitHandle.cs:
* Mutex.cs: Implement OpenExisting
* NativeEventCalls.cs: Add OpenEvent icall for OpenExisting in
2.0. Add a "created" boolean out parameter to CreateEvent icall.
* ManualResetEvent.cs:
* AutoResetEvent.cs: Update CreateEvent icall signature (now has
"created" boolean out parameter.)
2005-12-23 Dick Porter <[email protected]>
* Semaphore.cs: Implement OpenExisting
2005-12-23 Dick Porter <[email protected]>
* MutexRights.cs: New for 2.0 profile
2005-12-23 Dick Porter <[email protected]>
* SemaphoreRights.cs: Make the [Flags] enum more obvious
2005-12-23 Dick Porter <[email protected]>
* SemaphoreTest.cs: Enable another test
2005-12-23 Dick Porter <[email protected]>
* corlib.dll.sources: Added System.Security.AccessControl.MutexRights
svn path=/trunk/mcs/; revision=54801