diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2017-08-26 10:24:39 +0200 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2017-08-26 10:24:39 +0200 |
| commit | 65cf1452510c336fcd69f9922774389d6c3b1aee (patch) | |
| tree | d43e2e104d55291f7dffa7f1731db9ad108e1fcb /src/CrowThread.cs | |
| parent | 5f68cf21b47b88e4e1de7fed7bd9b8b56b5dfa3d (diff) | |
remove Initialise, currentInterface is set by instanciator
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 ece87fa8..857ec1a3 100644 --- a/src/CrowThread.cs +++ b/src/CrowThread.cs @@ -40,15 +40,15 @@ namespace Crow thread = new Thread (start); thread.IsBackground = true; Host = host; - lock (Host.CurrentInterface.CrowThreads) - Host.CurrentInterface.CrowThreads.Add (this); + lock (Host.currentInterface.CrowThreads) + Host.currentInterface.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.currentInterface.CrowThreads) + Host.currentInterface.CrowThreads.Remove (this); } public void Start() { thread.Start();} public void Cancel(){ @@ -57,8 +57,8 @@ namespace Crow thread.Join (); //cancelLoading = false; } - lock (Host.CurrentInterface.CrowThreads) - Host.CurrentInterface.CrowThreads.Remove (this); + lock (Host.currentInterface.CrowThreads) + Host.currentInterface.CrowThreads.Remove (this); } } } |