Mercurial > pub > ImplabNet
comparison MonoPlay/Program.cs @ 138:f75cfa58e3d4 v2
added ICancellable.Cancel(Exception) to allow specify the reason of cancellation
author | cin |
---|---|
date | Tue, 17 Feb 2015 18:16:26 +0300 |
parents | e9e7940c7d98 |
children | 706fccb85524 |
comparison
equal
deleted
inserted
replaced
137:238e15580926 | 138:f75cfa58e3d4 |
---|---|
67 | 67 |
68 | 68 |
69 | 69 |
70 var readers = new IPromise[readThreads]; | 70 var readers = new IPromise[readThreads]; |
71 for (int i = 0; i < readThreads; i++) | 71 for (int i = 0; i < readThreads; i++) |
72 readers[i] = AsyncPool.RunThread(reader1); | 72 readers[i] = AsyncPool.RunThread(reader2); |
73 | 73 |
74 var writers = new IPromise[writeThreads]; | 74 var writers = new IPromise[writeThreads]; |
75 for (int i = 0; i < writeThreads; i++) | 75 for (int i = 0; i < writeThreads; i++) |
76 writers[i] = AsyncPool.RunThread(writer1); | 76 writers[i] = AsyncPool.RunThread(writer1); |
77 | 77 |