aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/CrowThread.cs
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2017-09-11 18:03:35 +0200
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2017-09-11 18:03:35 +0200
commitdc8d870b76c445b6ef979ff58c2260e88793d167 (patch)
treeab0b76d5fbf180a1afc3bdf62c1b74a129496688 /src/CrowThread.cs
parent7f10fe9ea2a4538843401c54d4518376a69b242d (diff)
revert 65cf1452510c336fcd69f9922774389d6c3b1aee, to allow widget creation from code
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 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);
}
}
}