Switch to new critsect interface for DataLog.

The introduction of the new interface broke DataLog in a release build
(with enable_data_logging=1).

TBR=henrike@webrtc.org
TEST=build Linux/Release with enable_data_logging=1

Review URL: http://webrtc-codereview.appspot.com/334001

git-svn-id: http://webrtc.googlecode.com/svn/trunk@1212 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
andrew@webrtc.org 2011-12-15 21:33:11 +00:00
parent 7136990a3f
commit 04f5cba069

View File

@ -340,7 +340,7 @@ DataLogImpl::~DataLogImpl() {
}
int DataLogImpl::CreateLog() {
CriticalSectionScoped synchronize(crit_sect_);
CriticalSectionScoped synchronize(crit_sect_.get());
if (instance_ == NULL) {
instance_ = new DataLogImpl();
return instance_->Init();
@ -370,7 +370,7 @@ DataLogImpl* DataLogImpl::StaticInstance() {
}
void DataLogImpl::ReturnLog() {
CriticalSectionScoped synchronize(crit_sect_);
CriticalSectionScoped synchronize(crit_sect_.get());
if (instance_ && instance_->counter_ > 1) {
--instance_->counter_;
return;