diff options
Diffstat (limited to 'mcs/class/corlib/System.Threading/Timer.cs')
-rw-r--r-- | mcs/class/corlib/System.Threading/Timer.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mcs/class/corlib/System.Threading/Timer.cs b/mcs/class/corlib/System.Threading/Timer.cs index 6335877605..dd32032436 100644 --- a/mcs/class/corlib/System.Threading/Timer.cs +++ b/mcs/class/corlib/System.Threading/Timer.cs @@ -337,7 +337,7 @@ namespace System.Threading list.RemoveAt (i); count--; i--; - ThreadPool.UnsafeQueueUserWorkItem (TimerCB, timer); + ThreadPool.QueueWorkItem (TimerCB, timer); long period = timer.period_ms; long due_time = timer.due_time_ms; bool no_more = (period == -1 || ((period == 0 || period == Timeout.Infinite) && due_time != Timeout.Infinite)); |