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 | 4b39241bad2eb55a91305c4aa5197c1640e81c48 (patch) | |
| tree | c7c69917b6d2ac1ec985c9cddd5f66961c0f26cd /src/CrowThread.cs | |
| parent | da33782c4ab475d0e8c1216f13ecbff2450ec546 (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); } } } |