fafa

   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: }

posted on 2011-06-19 10:07  AndrewChenKISS  阅读(193)  评论(0)    收藏  举报