diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2017-08-27 06:51:36 +0200 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2017-08-27 06:51:36 +0200 |
| commit | d6d7eda88ae12d6c47d6c158a5a9527a47447745 (patch) | |
| tree | 29c1ef3356be40076313d9e6f4f3e1a186f52a4a /src/CrowThread.cs | |
| parent | f8465d581c43982ef76ad82c7c792b5e96264475 (diff) | |
first step in implementing a dispose mechanism for graphic objects
Diffstat (limited to 'src/CrowThread.cs')
| -rw-r--r-- | src/CrowThread.cs | 2 |
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; |