Age | Commit message (Collapse) | Author |
|
|
|
keep it around for as long as this Timer exists. Throw ObjectDisposedException on Enabled setter. ArgumentException throwing according to docs. Removed 'disposed' field. DueTime for underlying timer changes only if enabled (as per docs). Check for already disposed in Dispose(). Not firing Elapsed if disposed. Unit tests.
|
|
Checking the `disposing` argument is cleaner.
|
|
This would happen because _lock is nullified by the GC during
finalization. Dispose () calls Close () which sets the Enabled
property to false, which then attempts to lock on _lock.
|
|
|
|
2010-03-19 Sebastien Pouliot <sebastien@ximian.com>
* Timer.cs: Removed old NET_2_0 defines and added some new
MOONLIGHT defines (needed for the client stack)
In System.Net:
2010-03-19 Sebastien Pouliot <sebastien@ximian.com>
* AuthenticationManager.cs: Internal type for Moonlight.
Add BasicClient, DigestClient, NtlmClient for NET_2_1 since
this applies to both monotouch and moonlight (client stack).
Removed unneeded NET_2_0 defines
* CookieContainer.cs: For Moonlight it needs to be internal in
System.dll and public in System.Net.dll. Removed unneeded NET_2_0
defines
* HttpContinueDelegate.cs: Internal type for Moonlight.
* HttpRequestCreator.cs: Remove a MOONLIGHT define
* HttpStatusCode.cs: For Moonlight it needs to be internal in
System.dll and public in System.Net.dll
* HttpWebRequest.cs: Internal type for Moonlight. Change S.Config
to NET_2_1 defines (applies to both monotouch and moonlight).
Removed unneeded NET_2_0 and NET_1_1 defines
* HttpWebResponse.cs: Internal type for Moonlight. Removed
unneeded NET_2_0 defines
* IAuthenticationModule.cs: Internal type for Moonlight.
* ICertificatePolicy.cs: Internal type for Moonlight.
* ICredentialPolicy.cs: Internal type for Moonlight. Removed
unneeded NET_2_0 defines
* IWebRequestCreate.cs: For Moonlight it needs to be internal in
System.dll and public in System.Net.dll
* ServicePoint.cs: Internal type for Moonlight. Change S.Config
to NET_2_1 defines (applies to both monotouch and moonlight)
* ServicePointManager.cs: Remove a MOONLIGHT define
* WebException.cs: For Moonlight it needs to be internal in
System.dll and public in System.Net.dll. Removed unneeded NET_2_0
defines
* WebHeaderCollection.cs: Internal type for Moonlight. Removed
unneeded NET_2_0 defines
* WebRequest.cs: Internal type for Moonlight. Change S.Config
to NET_2_1 defines (applies to both monotouch and moonlight)
* WebResponse.cs: Internal type for Moonlight. Removed unneeded
NET_2_0 defines
In System.Net.Sockets:
2010-03-19 Sebastien Pouliot <sebastien@ximian.com>
* Socket.cs: Remove some NET_2_0 defines (using) and add a few
MOONLIGHT defines needed to reuse Socket in the client http stack
* Socket_2_1.cs: Remove some MOONLIGHT defines
* SocketAsyncEventArgs.cs: For Moonlight check policy if outside
System.dll (the client stack use sockets with it's own web
xdomain policy)
In System:
2010-03-19 Sebastien Pouliot <sebastien@ximian.com>
* Uri.cs: Remove some MOONLIGHT defines
In .:
2010-03-19 Sebastien Pouliot <sebastien@ximian.com>
* moonlight_*_System.dll.sources: Bring extra types so we can
build a full, managed, internal HTTP stack to be reused for SL3+
* Makefile: Add a INSIDE_SYSTEM define when compiling System.dll
to makes it possible to rebuild the same types in System.Net.dll
svn path=/trunk/mcs/; revision=153916
|
|
* Timer_2_1.cs: Removed. No longer needed by Moonlight
svn path=/trunk/mcs/; revision=142853
|
|
* Timer_2_1.cs: New. A smaller, internal subset of Timer for
Moonlight - needed for Socket.Close(int)
svn path=/trunk/mcs/; revision=142718
|
|
* Timer.cs: lock access to the 'timer' field. Attemp to fix bug
#537921.
svn path=/trunk/mcs/; revision=142548
|
|
* Timer.cs: rewritten to use Threading.Timer so it doesn't create a
thread per timer and behaves better. Fixed also a few implementation
bugs.
svn path=/trunk/mcs/; revision=113267
|
|
* Timer.cs: Fix ArgumentException message.
Patch by Paul Burton.
svn path=/trunk/mcs/; revision=108172
|
|
2007-10-30 Robert Jordan <robertj@gmx.net>
* TimerTest.cs: Enable test for bug #82701/#325368.
In System.Timers:
2007-10-30 Robert Jordan <robertj@gmx.net>
* Timer.cs (set_Enabled): Allow setting Enabled from within
the Elapsed event handler. Fixes #325368.
svn path=/trunk/mcs/; revision=88437
|
|
* Timer.cs: This calls Thread methods in the finalizer too, so use
the same workaround as in r85425.
svn path=/trunk/mcs/; revision=85474
|
|
svn path=/trunk/mcs/; revision=85357
|
|
* Timer.cs: Apply the latest patch at attached to bug #77847.
svn path=/trunk/mcs/; revision=69727
|
|
* Timer.cs: Fixes race condition (bug #77847). Patch from Robert Jordan.
svn path=/trunk/mcs/; revision=69726
|
|
* Timer.cs: Fix race condition of the wait handle object.
Fixes bug #77847.
svn path=/trunk/mcs/; revision=69357
|
|
* TimersDescriptionAttribute.cs: Revert Description property fix
because it doesn't always returns null (exact conditions unknown).
svn path=/trunk/mcs/; revision=53123
|
|
* ElapsedEventHandler.cs: Remove [Serializable] from 2.0 profile.
* Timer.cs: Add [Browsable(false)] to SynchronizingObject property for
2.0 profile.
* TimersDescriptionAttribute.cs: Description always returns null.
svn path=/trunk/mcs/; revision=53118
|
|
svn path=/trunk/mcs/; revision=45121
|
|
svn path=/trunk/mcs/; revision=30054
|
|
This fixes #58816.
svn path=/trunk/mcs/; revision=29594
|
|
* Timer.cs: if AutoReset, disable the timer before adding the callback
to the ThreadPool. Patch by Tim Fries <timf@dicecorp.com>. Fixes bug
#57993.
svn path=/trunk/mcs/; revision=27114
|
|
* Timer.cs: Elapsed is an event. Added a few attributes.
svn path=/trunk/mcs/; revision=12620
|
|
* ChangeLog:
* ElapsedEventArgs.cs:
* ElapsedEventHandler.cs:
* Timer.cs:
* TimersDescriptionAttribute.cs: New files.
Don't use timers yet. If you do, your program will never end.
svn path=/trunk/mcs/; revision=9103
|