comparison Implab/Parallels/ArrayTraits.cs @ 48:d9d794b61bb9 interactive logger

Interactive tracing Improved working with tracing contexts
author cin
date Fri, 18 Apr 2014 12:34:45 +0400
parents 2fc0fbe7d58b
children d67b95eddaf4
comparison
equal deleted inserted replaced
47:b181f7bcb259 48:d9d794b61bb9
40 return m_promise; 40 return m_promise;
41 } 41 }
42 } 42 }
43 43
44 protected override void Worker() { 44 protected override void Worker() {
45 TraceContext.Transfer(m_traceContext); 45 TraceContext.Fork(m_traceContext);
46 base.Worker(); 46 base.Worker();
47 } 47 }
48 48
49 protected override bool TryDequeue(out int unit) { 49 protected override bool TryDequeue(out int unit) {
50 unit = Interlocked.Increment(ref m_next) - 1; 50 unit = Interlocked.Increment(ref m_next) - 1;
97 return m_promise; 97 return m_promise;
98 } 98 }
99 } 99 }
100 100
101 protected override void Worker() { 101 protected override void Worker() {
102 TraceContext.Transfer(m_traceContext); 102 TraceContext.Fork(m_traceContext);
103 base.Worker(); 103 base.Worker();
104 } 104 }
105 105
106 protected override bool TryDequeue(out int unit) { 106 protected override bool TryDequeue(out int unit) {
107 unit = Interlocked.Increment(ref m_next) - 1; 107 unit = Interlocked.Increment(ref m_next) - 1;