diff options
-rw-r--r-- | cs/src/Ice/Timer.cs | 6 | ||||
-rw-r--r-- | java/src/IceInternal/Timer.java | 9 |
2 files changed, 15 insertions, 0 deletions
diff --git a/cs/src/Ice/Timer.cs b/cs/src/Ice/Timer.cs index 2d75a77097f..0095c6d2481 100644 --- a/cs/src/Ice/Timer.cs +++ b/cs/src/Ice/Timer.cs @@ -7,6 +7,12 @@ // // ********************************************************************** +// +// NOTE: We don't use C# timers, the API is quite a bit different from +// the C++ & Java timers and it's not clear what is the cost of +// scheduling and cancelling timers. +// + namespace IceInternal { using System.Diagnostics; diff --git a/java/src/IceInternal/Timer.java b/java/src/IceInternal/Timer.java index aef11cbf5c7..10a7e40f7a0 100644 --- a/java/src/IceInternal/Timer.java +++ b/java/src/IceInternal/Timer.java @@ -9,6 +9,15 @@ package IceInternal; +// +// NOTE: We don't use the java.util.Timer class for few reasons. The +// Java TimerTask is a class not an interface making it more difficult +// to use. The API is also a bit different, cancel() is a TimerTask +// method not a Timer method and calling purge() on the timer on a +// regular basis is required to allow canceled timer task objects to +// be garbage collected. +// + interface TimerTask { void runTimerTask(); |