1: int
2: DebugCounter::GetSample() const
3: {
4: int val = 0;
5: this->critSect.Enter();
6: if (!this->history.IsEmpty())
7: {
8: val = this->history.Back();
9: }
10: this->critSect.Leave();
11: return val;
12: }