예제 #1
0
 internal Boolean AtomicSetWait(UInt16 numberOpsToWaitFor)
 {
     return(InterlockedEx.Morph <Boolean, UInt16>(
                ref m_waitAndInboxCounts,
                numberOpsToWaitFor, SetWait));
 }
예제 #2
0
 internal Boolean AtomicIncrementInbox()
 {
     return(InterlockedEx.Morph <Boolean, Object>(
                ref m_waitAndInboxCounts,
                null, IncrementInbox));
 }