Fix data race in VCMTiming::ResetDecodeTime.

Also thread annotating class.

BUG=
R=stefan@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/17939004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@6653 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
pbos@webrtc.org
2014-07-10 15:25:37 +00:00
parent bd9c0920ec
commit 0422100818
2 changed files with 17 additions and 13 deletions

View File

@ -58,6 +58,7 @@ void VCMTiming::Reset() {
}
void VCMTiming::ResetDecodeTime() {
CriticalSectionScoped lock(crit_sect_);
codec_timer_.Reset();
}