diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2018-02-23 13:25:37 +0100 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2018-02-23 13:25:37 +0100 |
| commit | 0e7aaef3655c455094df9a6a4580ad0aff8519a1 (patch) | |
| tree | cc4c0241ae0a6f40c2858f72645e8328f26d5a5a /src/CrowThread.cs | |
| parent | a2a18e264a8a2d586f2c058ebb5b2b15b745804e (diff) | |
rename CurrentInterface to IFace
Diffstat (limited to 'src/CrowThread.cs')
| -rw-r--r-- | src/CrowThread.cs | 12 |
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); } } } |