Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mcs/class/System/System.IO/KeventWatcher.cs')
-rw-r--r--mcs/class/System/System.IO/KeventWatcher.cs11
1 files changed, 2 insertions, 9 deletions
diff --git a/mcs/class/System/System.IO/KeventWatcher.cs b/mcs/class/System/System.IO/KeventWatcher.cs
index 5a1984f7099..778671764ea 100644
--- a/mcs/class/System/System.IO/KeventWatcher.cs
+++ b/mcs/class/System/System.IO/KeventWatcher.cs
@@ -736,9 +736,8 @@ namespace System.IO {
return true;
}
- public void StartDispatching (object handle)
+ public void StartDispatching (FileSystemWatcher fsw)
{
- var fsw = handle as FileSystemWatcher;
KqueueMonitor monitor;
if (watches.ContainsKey (fsw)) {
@@ -751,20 +750,14 @@ namespace System.IO {
monitor.Start ();
}
- public void StopDispatching (object handle)
+ public void StopDispatching (FileSystemWatcher fsw)
{
- var fsw = handle as FileSystemWatcher;
KqueueMonitor monitor = (KqueueMonitor)watches [fsw];
if (monitor == null)
return;
monitor.Stop ();
}
-
- public void Dispose (object handle)
- {
- // does nothing
- }
[DllImport ("libc")]
extern static int close (int fd);