Commit Graph
28 Commits
Author SHA1 Message Date
Paolo Molaro 10f5121f53 2007-09-14 Jb Evain <[email protected]>
* Makefile: force the use of the 2.0 mscorlib to compile
	the 2.1 mscorlib.dll.


svn path=/trunk/mcs/; revision=89215
2007-11-08 17:16:46 +00:00
Paolo Molaro 5f6065478f Wed Oct 17 13:24:33 CEST 2007 Paolo Molaro <[email protected]>
* Timer.cs: better cleanup test for the expired array.


svn path=/trunk/mcs/; revision=87649
2007-10-17 11:09:04 +00:00
Paolo Molaro 30285e8c6c Tue Oct 16 17:22:15 CEST 2007 Paolo Molaro <[email protected]>
* Timer.cs: remove expired timers from the the jobs list.


svn path=/trunk/mcs/; revision=87594
2007-10-16 15:05:38 +00:00
Paolo Molaro e12847ece5 Tue Oct 16 12:14:43 CEST 2007 Paolo Molaro <[email protected]>
* 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
2007-10-16 10:00:19 +00:00
Dick Porter 419508e978 2007-09-06 Dick Porter <[email protected]>
* 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
2007-09-06 15:30:17 +00:00
Atsushi Eno 12dbd9ec3f 2004-04-29 Atsushi Enomoto <[email protected]>
* Timer.cs : avoid NullReferenceException when it is already disposed.
	  Patch by [email protected]. Fixed bug #78208.


svn path=/trunk/mcs/; revision=60075
2006-04-29 15:18:50 +00:00
Martin Baulig a0a18f5615 2005-09-09 Martin Baulig <[email protected]>
* Timer.cs (Timer.Runner.Start): Silently catch
	ObjectDisposedException and return; works around some race
	condition on thread abort.	


svn path=/trunk/mcs/; revision=49775
2005-09-09 06:11:03 +00:00
Martin Baulig 65ad2a3b45 2005-07-19 Martin Baulig <[email protected]>
* Timer.cs (Timer.Runner.Start): Fix a race condition which was
	causing a hang on exit int he debugger: check `!disposed' before
	`start_event.WaitOne ()' and again after it.


svn path=/trunk/mcs/; revision=47401
2005-07-19 06:21:50 +00:00
Sebastien Pouliot 74c0ac4684 2005-05-29 Sebastien Pouliot <[email protected]>
* Timer.cs: Added new constructor for 2.0 and ComVisible attribute.
	* Timeout.cs: This is a static class in 2.0 and ComVisible attribute.


svn path=/trunk/mcs/; revision=45164
2005-05-29 14:51:47 +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
Gonzalo Paniagua Javier 4c07adad95 2004-09-16 Gonzalo Paniagua Javier <[email protected]>
* Timer.cs: don't invoke the callback twice when the timer changes.
	Fixes bug #66116.

svn path=/trunk/mcs/; revision=33975
2004-09-16 18:33:27 +00:00
Gonzalo Paniagua Javier 5576e9532e 2004-08-04 Gonzalo Paniagua Javier <[email protected]>
* Timer.cs: don't invoke the callback if the period changes before the
	due time. Fixes bug #62421.

svn path=/trunk/mcs/; revision=31873
2004-08-04 16:58:52 +00:00
Lluis Sanchez 6f79c6d07e * Timer.cs: Don't abort the thread if Dispose() is called from the runner
thread.

svn path=/trunk/mcs/; revision=29593
2004-06-15 09:51:58 +00:00
Duncan Mak 13d1764537 Add license and copyright to all source files in corlib
svn path=/trunk/mcs/; revision=29249
2004-06-11 02:09:36 +00:00
Lluis Sanchez 74276c5768 * ThreadPool.cs: Added GetMinThreads and SetMinThreads.
* Timer.cs: In Change, return false if the timer has been disposed.
	In Dispose, notify the WaitHandle.

svn path=/trunk/mcs/; revision=25552
2004-04-15 14:40:58 +00:00
Zoltan Varga 587b8babef 2004-04-09 Zoltan Varga <[email protected]>
* Timer.cs: Call the callback immediately if dueTime is 0. Fixes
	#56728.

svn path=/trunk/mcs/; revision=25245
2004-04-09 13:15:21 +00:00
Gonzalo Paniagua Javier 786e70ee30 2004-04-08 Gonzalo Paniagua Javier <[email protected]>
* Timer.cs: call Abort on the Runner instance too.

svn path=/trunk/mcs/; revision=25206
2004-04-08 04:30:13 +00:00
Gonzalo Paniagua Javier 271bb68c4e 2004-03-21 Gonzalo Paniagua Javier <[email protected]>
* ThreadAbortException.cs: use same HResult as MS.
	* Timer.cs: abort the running thread when disposing the Timer. This
	fixes NullRefs when finishing xsp.

svn path=/trunk/mcs/; revision=24386
2004-03-21 07:38:16 +00:00
Zoltan Varga 372e2b3af8 2004-03-08 Zoltan Varga <[email protected]>
* Timer.cs (Dispose): Applied patch from Jaroslaw Kowalski
	([email protected]). Fix finalization problems during appdomain unload.

svn path=/trunk/mcs/; revision=23807
2004-03-08 16:24:20 +00:00
Pedro Martínez Juliá f2d32eb17c 2003-04-17 Pedro Mart�nez Juli� <[email protected]>
* Timer.cs: Change the position of two lines because they were
    before the "if" that ensures the integrity. After this, the first of
    that two lines was producing a NullReferenceException.

svn path=/trunk/mcs/; revision=13737
2003-04-17 20:35:41 +00:00
Patrik Torstensson 2763585afc 2003-02-07 Patrik Torstensson
* Timer.cs: Set the background thread flag for the timer thread.

svn path=/trunk/mcs/; revision=11297
2003-02-07 11:50:06 +00:00
Dick Porter 21374e28f0 2002-12-10 Dick Porter <[email protected]>
* 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
2002-12-10 18:02:55 +00:00
Martin Baulig 6f0ce7c4f5 2002-12-07 Martin Baulig <[email protected]>
* Timer.cs: Make it actually work; now it no longer sets your
	application on fire if you use a zero periode and Timer.Change()
	actually works.

svn path=/trunk/mcs/; revision=9426
2002-12-07 19:14:33 +00:00
Gonzalo Paniagua Javier 33a0d2930f 2002-11-11 Gonzalo Paniagua Javier <[email protected]>
* Timer.cs: implemented more stuff. It works now.

svn path=/trunk/mcs/; revision=8921
2002-11-11 18:37:18 +00:00
Piers Haken 7c1ac4e3a9 fixed base classes (and typos)
svn path=/trunk/mcs/; revision=3532
2002-04-01 08:10:13 +00:00
Ravi Pratap M 0f04441d63 002-01-05 Ravi Pratap <[email protected]>
* AutoResetEvent.cs, ManualResetEvent.cs, Monitor.cs : MonoTODO
	decoration.

	* Mutex.cs, Overlapped.cs, ReaderWriterLock.cs, RegisteredWaitHandle.cs,
	Thread.cs, ThreadAbortException.cs, ThreadPool.cs, Timer.cs, WaitHandler.cs : Ditto.

svn path=/trunk/mcs/; revision=1850
2002-01-05 06:26:59 +00:00
Paolo Molaro c441fe5cc6 Wed Nov 14 16:30:27 CET 2001 Paolo Molaro <[email protected]>
* Linux.cs: a '/' is a valid char in a file path.


Wed Nov 14 16:31:19 CET 2001 Paolo Molaro <[email protected]>

	* AppDomain.cs: rename dummy interface _AppDomain to AppDomain_Intf.
	* Array.cs: fix Array.Copy.
	* AssemblyLoadEventArgs.cs: rename field.
	* CLSCompliantAttribute.cs: use correct name for the class.
	* Char.cs: fix IsLetter.
	* Console.cs, DateTime.cs, Decimal.cs, IConvertible.cs, Math.cs,
	SByte.cs, UInt16.cs, UInt32.cs, UInt64.cs, UIntPtr.cs: CLSCompliant updates.
	* Convert.cs: CLSCompliant updates, add ChangeType() methods.
	* Delegate.cs: renamed target field to m_target.
	* Enum.cs: added missing methods.
	* MonoType.cs: add a constructor and some needed properties.
	* Object.cs: implement GetType().
	* String.cs: CLSCompliant updates. Fixes everywhere to remove the
	ending 0 char.
	* Type.cs: add missing methods/properties.


Wed Nov 14 16:45:49 CET 2001 Paolo Molaro <[email protected]>

	* ArrayList.cs: implement ArrayListEnumerator.
	* Hashtable.cs: hardcode the prime number table.


Wed Nov 14 16:47:07 CET 2001 Paolo Molaro <[email protected]>

	* Calendar.cs: CLSCompliant updates.


Wed Nov 14 16:47:47 CET 2001 Paolo Molaro <[email protected]>

	* CheckPermission.cs: disable ModeAccess() code: it's wrong.
	* FileStream.cs: only trow an exception if the read failed in ReadByte().
	* StreamReader.cs: implement Peek and Read.
	* TextWriter.cs: CLSCompliant updates.


Wed Nov 14 16:53:28 CET 2001 Paolo Molaro <[email protected]>

	* Assembly.cs: implement some of the Load() methods.
	* ConstructorInfo.cs: some missing stubs and fields.
	* FieldInfo.cs: IsInitOnly property.
	* ParameterInfo.cs: stubs for missing properties.
	* ParameterModifier.cs: implemented class.


Wed Nov 14 17:01:45 CET 2001 Paolo Molaro <[email protected]>

	* ConstructorBuilder.cs: added missing stubs and some implementation.
	* CustomAttributeBuilder.cs: added.
	* EventBuilder.cs: added.
	* FieldBuilder.cs: updates.
	* MethodBuilder.cs: stuff to implement P/Invoke methods.
	* ModuleBuilder.cs: added GetArrayMethod() stub.
	* ParameterBuilder.cs, PropertyBuilder.cs: updates.
	* TypeBuilder.cs: updates and stubs.


Wed Nov 14 17:02:57 CET 2001 Paolo Molaro <[email protected]>

	* CallingConvention.cs: add missing Winapi.


Wed Nov 14 17:03:30 CET 2001 Paolo Molaro <[email protected]>

	* IFormatterConverter.cs, SerializationInfo.cs: CLSCompliant updates.


Wed Nov 14 17:04:30 CET 2001 Paolo Molaro <[email protected]>

	* MD5CryptoServiceProvider.cs, SHA1CryptoServiceProvider.cs,
	SHA256Managed.cs: CLSCompliant updates.


Wed Nov 14 17:05:22 CET 2001 Paolo Molaro <[email protected]>

	* Encoding.cs: renamed some fields.
	* StringBuilder.cs: CLSCompliant updates.


Wed Nov 14 17:06:18 CET 2001 Paolo Molaro <[email protected]>

	* Overlapped.cs, ThreadPool.cs, Timer.cs: CLSCompliant updates.

svn path=/trunk/mcs/; revision=1351
2001-11-14 15:18:05 +00:00
Dick Porter 58b4ee1b2c System.Threading class stubs.
svn path=/trunk/mcs/; revision=810
2001-09-13 12:47:25 +00:00