void vMarkEntryIntoMap(const SACK_MAP& RefObj) { //EnterCriticalSection(&sg_CritSectForAckBuf); // Lock the buffer sg_asAckMapBuf.push_back(RefObj); //LeaveCriticalSection(&sg_CritSectForAckBuf); // Unlock the buffer }
/** * Pushes an entry into the list at the last position */ static void vMarkEntryIntoMap(const SACK_MAP& RefObj) { EnterCriticalSection(&sg_DIL_CriticalSection); // Lock the buffer sg_asAckMapBuf.push_back(RefObj); LeaveCriticalSection(&sg_DIL_CriticalSection); // Unlock the buffer }