Lines Matching refs:ChannelRefCount
18 LONG ChannelRefCount[SAC_MAX_CHANNELS]; variable
26 #define CHANNEL_SLOT_IS_IN_USE(x) (ChannelRefCount[(x)] > 0)
39 return ChannelRefCount[Index]; in ChannelGetReferenceCount()
48 ASSERT(ChannelRefCount[Index] <= MAX_REF_COUNT); in ChannelReferenceByIndex()
49 ASSERT(ChannelRefCount[Index] >= 1); in ChannelReferenceByIndex()
50 _InterlockedIncrement(&ChannelRefCount[Index]); in ChannelReferenceByIndex()
51 ASSERT(ChannelRefCount[Index] <= MAX_REF_COUNT); in ChannelReferenceByIndex()
52 ASSERT(ChannelRefCount[Index] >= 2); in ChannelReferenceByIndex()
76 _InterlockedDecrement(&ChannelRefCount[Index]); in ChannelDereferenceByIndex()
96 _InterlockedExchange(&ChannelRefCount[Index], 0); in ChannelDereferenceToZeroByIndex()
104 _InterlockedExchange(&ChannelRefCount[Index], 1); in ChannelReferenceToOneByIndex()
134 _InterlockedExchange(&ChannelRefCount[i], 0); in ChanMgrInitialize()