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/FAMWatcher.cs')
-rw-r--r--mcs/class/System/System.IO/FAMWatcher.cs10
1 files changed, 8 insertions, 2 deletions
diff --git a/mcs/class/System/System.IO/FAMWatcher.cs b/mcs/class/System/System.IO/FAMWatcher.cs
index 63faf5fed7c..d0ee6526ee5 100644
--- a/mcs/class/System/System.IO/FAMWatcher.cs
+++ b/mcs/class/System/System.IO/FAMWatcher.cs
@@ -110,8 +110,9 @@ namespace System.IO {
return true;
}
- public void StartDispatching (FileSystemWatcher fsw)
+ public void StartDispatching (object handle)
{
+ var fsw = handle as FileSystemWatcher;
FAMData data;
lock (this) {
if (thread == null) {
@@ -199,8 +200,9 @@ namespace System.IO {
}
}
- public void StopDispatching (FileSystemWatcher fsw)
+ public void StopDispatching (object handle)
{
+ var fsw = handle as FileSystemWatcher;
FAMData data;
lock (this) {
data = (FAMData) watches [fsw];
@@ -408,6 +410,10 @@ namespace System.IO {
return fam_Pending (ref fc);
}
+ public void Dispose (object handle)
+ {
+ // does nothing
+ }
[DllImport ("libfam.so.0", EntryPoint="FAMOpen")]