comparison Implab/Parallels/DispatchPool.cs @ 41:2fc0fbe7d58b

Added TraceContext support to array traits
author cin
date Tue, 15 Apr 2014 18:06:34 +0400
parents dabf79fde388
children 4f20870d0816
comparison
equal deleted inserted replaced
40:fe33f4e02ad5 41:2fc0fbe7d58b
272 } 272 }
273 } 273 }
274 274
275 protected abstract void InvokeUnit(TUnit unit); 275 protected abstract void InvokeUnit(TUnit unit);
276 276
277 void Worker() { 277 protected virtual void Worker() {
278 TUnit unit; 278 TUnit unit;
279 //Console.WriteLine("{0}: Active", Thread.CurrentThread.ManagedThreadId); 279 //Console.WriteLine("{0}: Active", Thread.CurrentThread.ManagedThreadId);
280 Interlocked.Increment(ref m_activeThreads); 280 Interlocked.Increment(ref m_activeThreads);
281 do { 281 do {
282 // exit if requested 282 // exit if requested