From: Roger Meier Date: Mon, 3 Oct 2011 19:37:09 +0000 (+0000) Subject: THRIFT-1361 Optional replacement of pthread by boost::thread (minor fix) X-Git-Tag: 0.8.0~65 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=20e6ef136e411c3d263d7cbbb8b22bc4de31d8b8;p=common%2Fthrift.git THRIFT-1361 Optional replacement of pthread by boost::thread (minor fix) FIX: member initialization order within constructor git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1178532 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/lib/cpp/src/transport/TFileTransport.cpp b/lib/cpp/src/transport/TFileTransport.cpp index 405c162d..3121b438 100644 --- a/lib/cpp/src/transport/TFileTransport.cpp +++ b/lib/cpp/src/transport/TFileTransport.cpp @@ -98,7 +98,10 @@ TFileTransport::TFileTransport(string path, bool readOnly) , writerThreadId_(0) , dequeueBuffer_(NULL) , enqueueBuffer_(NULL) + , notFull_(&mutex_) + , notEmpty_(&mutex_) , closing_(false) + , flushed_(&mutex_) , forceFlush_(false) , filename_(path) , fd_(0) @@ -107,9 +110,6 @@ TFileTransport::TFileTransport(string path, bool readOnly) , lastBadChunk_(0) , numCorruptedEventsInChunk_(0) , readOnly_(readOnly) - , notFull_(&mutex_) - , notEmpty_(&mutex_) - , flushed_(&mutex_) { openLogFile(); }