comparison Implab/TaskController.cs @ 10:aa33d0bb8c0c promises

implemeted new cancellable promises concept
author cin
date Sun, 03 Nov 2013 18:07:38 +0400
parents 7ea9363fef6c
children eb418ba8275b
comparison
equal deleted inserted replaced
9:c82e0dfbb4dd 10:aa33d0bb8c0c
12 /// <remarks> 12 /// <remarks>
13 /// Members of this object are thread safe. 13 /// Members of this object are thread safe.
14 /// </remarks> 14 /// </remarks>
15 class TaskController 15 class TaskController
16 { 16 {
17 object m_lock; 17 readonly object m_lock;
18 string m_message; 18 string m_message;
19 bool m_cancelled;
20 19
21 float m_current; 20 float m_current;
22 float m_max; 21 float m_max;
23 22
24 public event EventHandler<ValueEventArgs<string>> MessageUpdated; 23 public event EventHandler<ValueEventArgs<string>> MessageUpdated;