Changeset 749 for trunk/sources/HeuristicLab.Hive.Client.Common
- Timestamp:
- 11/13/08 16:48:36 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Client.Common/JobBase.cs
r742 r749 6 6 7 7 namespace HeuristicLab.Hive.Client.Common { 8 9 public delegate void Callback(); 10 8 11 abstract public class JobBase { 9 12 13 public event Callback JobAborted; 14 10 15 private Thread thread = null; 16 11 17 public int Progress { get; set; } 12 18 private bool abort = false; 19 private bool running = false; 13 20 14 21 abstract public void Run(); … … 17 24 thread = new Thread(new ThreadStart(Run)); 18 25 thread.Start(); 26 running = true; 19 27 } 20 public JobBase() { 28 29 public void Stop() { 30 abort = true; 31 } 32 33 public JobBase() { 21 34 } 22 35 }
Note: See TracChangeset
for help on using the changeset viewer.