diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2017-11-05 23:02:49 +0100 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2017-11-05 23:02:49 +0100 |
| commit | 5185d70ddd14728576bafdfea267981baed88d84 (patch) | |
| tree | 28ecf610198dc524f927f953a952cbc7f1717498 /src/CrowThread.cs | |
| parent | 8d59e42e78db11afaf9b2f6530403a12b1d1926c (diff) | |
| parent | 28788991d650bc8ba29b9c2817dbb757129977e5 (diff) | |
merge
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 823fe1a6..c3a4ba3b 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.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 cancelRequested = true; thread.Join (); } - lock (Host.currentInterface.CrowThreads) - Host.currentInterface.CrowThreads.Remove (this); + lock (Host.CurrentInterface.CrowThreads) + Host.CurrentInterface.CrowThreads.Remove (this); } } } |