Mercurial > pub > ImplabNet
comparison Implab/AbstractEvent.cs @ 253:34df34841225 v3 v3.0.1-beta
Implab.Diagnostics drafts
author | cin |
---|---|
date | Mon, 12 Feb 2018 17:03:37 +0300 |
parents | 5cb4826c2c2a |
children |
comparison
equal
deleted
inserted
replaced
252:6f4630d0bcd9 | 253:34df34841225 |
---|---|
60 protected void CompleteTransit() { | 60 protected void CompleteTransit() { |
61 #if DEBUG | 61 #if DEBUG |
62 if (TransitionalState != Interlocked.CompareExchange(ref m_state, ResolvedState, TransitionalState)) | 62 if (TransitionalState != Interlocked.CompareExchange(ref m_state, ResolvedState, TransitionalState)) |
63 throw new InvalidOperationException("Can't complete transition when the object isn't in the transitional state"); | 63 throw new InvalidOperationException("Can't complete transition when the object isn't in the transitional state"); |
64 #else | 64 #else |
65 m_state = state; | 65 m_state = ResolvedState; |
66 #endif | 66 #endif |
67 Signal(); | 67 Signal(); |
68 } | 68 } |
69 | 69 |
70 protected void WaitTransition() { | 70 protected void WaitTransition() { |