aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/CrowThread.cs
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2017-08-27 06:51:36 +0200
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2017-08-27 06:51:36 +0200
commit6cbe9f9d2a604cdbb74f46f3710ea3dc60a87e55 (patch)
tree7e3e675b2f6b14d320b124389b25fde003b63ea6 /src/CrowThread.cs
parent3025ab70f5fc51819f5980908a8a98d5d6426b7e (diff)
first step in implementing a dispose mechanism for graphic objects
Diffstat (limited to 'src/CrowThread.cs')
-rw-r--r--src/CrowThread.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/CrowThread.cs b/src/CrowThread.cs
index 857ec1a3..fbcdc956 100644
--- a/src/CrowThread.cs
+++ b/src/CrowThread.cs
@@ -33,6 +33,7 @@ namespace Crow
/// Thread monitored by current interface with Finished event when state==Stopped
/// </summary>
public class CrowThread {
+ public bool cancel = false;
Thread thread;
public event EventHandler Finished;
public GraphicObject Host;
@@ -53,6 +54,7 @@ namespace Crow
public void Start() { thread.Start();}
public void Cancel(){
if (thread.IsAlive){
+ cancel = true;
//cancelLoading = true;
thread.Join ();
//cancelLoading = false;