Mercurial > pub > ImplabNet
comparison Implab/Parallels/AsyncPool.cs @ 119:2573b562e328 v2
Promises rewritten, added improved version of AsyncQueue
| author | cin |
|---|---|
| date | Sun, 11 Jan 2015 19:13:02 +0300 |
| parents | 4c0e5ef99986 |
| children | f1b897999260 |
comparison
equal
deleted
inserted
replaced
| 118:e046a94eecb1 | 119:2573b562e328 |
|---|---|
| 51 return p; | 51 return p; |
| 52 } | 52 } |
| 53 | 53 |
| 54 | 54 |
| 55 public static IPromise InvokeNewThread(Action func) { | 55 public static IPromise InvokeNewThread(Action func) { |
| 56 var p = new Promise<object>(); | 56 var p = new Promise(); |
| 57 | 57 |
| 58 var caller = TraceContext.Instance.CurrentOperation; | 58 var caller = TraceContext.Instance.CurrentOperation; |
| 59 | 59 |
| 60 var worker = new Thread(() => { | 60 var worker = new Thread(() => { |
| 61 TraceContext.Instance.EnterLogicalOperation(caller,false); | 61 TraceContext.Instance.EnterLogicalOperation(caller,false); |
