aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/CrowThread.cs
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2018-02-23 13:25:37 +0100
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2018-02-23 13:25:37 +0100
commit0e7aaef3655c455094df9a6a4580ad0aff8519a1 (patch)
treecc4c0241ae0a6f40c2858f72645e8328f26d5a5a /src/CrowThread.cs
parenta2a18e264a8a2d586f2c058ebb5b2b15b745804e (diff)
rename CurrentInterface to IFace
Diffstat (limited to 'src/CrowThread.cs')
-rw-r--r--src/CrowThread.cs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/CrowThread.cs b/src/CrowThread.cs
index c3a4ba3b..a1b4c38e 100644
--- a/src/CrowThread.cs
+++ b/src/CrowThread.cs
@@ -41,15 +41,15 @@ namespace Crow
thread = new Thread (start);
thread.IsBackground = true;
Host = host;
- lock (Host.CurrentInterface.CrowThreads)
- Host.CurrentInterface.CrowThreads.Add (this);
+ lock (Host.IFace.CrowThreads)
+ Host.IFace.CrowThreads.Add (this);
}
public void CheckState(){
if (thread.ThreadState != ThreadState.Stopped)
return;
Finished.Raise (Host, null);
- lock (Host.CurrentInterface.CrowThreads)
- Host.CurrentInterface.CrowThreads.Remove (this);
+ lock (Host.IFace.CrowThreads)
+ Host.IFace.CrowThreads.Remove (this);
}
public void Start() { thread.Start();}
public void Cancel(){
@@ -57,8 +57,8 @@ namespace Crow
cancelRequested = true;
thread.Join ();
}
- lock (Host.CurrentInterface.CrowThreads)
- Host.CurrentInterface.CrowThreads.Remove (this);
+ lock (Host.IFace.CrowThreads)
+ Host.IFace.CrowThreads.Remove (this);
}
}
}