9 configurationIsNeeded_(
false),
10 streamChangeIsNeeded_(
false),
11 fileClosingTestIsNeeded_(
false),
12 diskWriterIsBusy_(
false),
13 streamChangeInProgress_(
false)
23 boost::posix_time::time_duration
const& timeoutValue
26 boost::mutex::scoped_lock sl(streamChangeMutex_);
28 requestedEventStreamConfig_ = evtStrConfig;
29 requestedErrorStreamConfig_ = errStrConfig;
30 requestedDiskWritingParams_ = dwParams;
32 requestedTimeout_ = timeoutValue;
33 configurationIsNeeded_ =
true;
34 streamChangeIsNeeded_ =
true;
50 unsigned int& runNumber,
51 boost::posix_time::time_duration& timeoutValue
54 boost::mutex::scoped_lock sl(streamChangeMutex_);
56 if (! streamChangeIsNeeded_) {
return false;}
58 streamChangeIsNeeded_ =
false;
60 doConfig = configurationIsNeeded_;
61 if (configurationIsNeeded_)
63 configurationIsNeeded_ =
false;
64 evtStrConfig = requestedEventStreamConfig_;
65 errStrConfig = requestedErrorStreamConfig_;
66 dwParams = requestedDiskWritingParams_;
67 runNumber = requestedRunNumber_;
68 timeoutValue = requestedTimeout_;
71 streamChangeInProgress_ =
true;
void requestStreamDestruction()
boost::shared_ptr< ErrStrConfigList > ErrStrConfigListPtr
boost::condition streamChangeCondition_
boost::shared_ptr< EvtStrConfigList > EvtStrConfigListPtr
bool configurationIsNeeded_
bool streamChangeInProgress_
void setBusy(bool isBusyFlag)
void requestStreamConfiguration(EvtStrConfigListPtr const, ErrStrConfigListPtr const, DiskWritingParams const &, unsigned int const &runNumber, boost::posix_time::time_duration const &timeoutValue)
virtual bool streamChangeOngoing()
bool streamChangeRequested(bool &doConfig, EvtStrConfigListPtr &, ErrStrConfigListPtr &, DiskWritingParams &dwParams, unsigned int &runNumber, boost::posix_time::time_duration &timeoutValue)
boost::mutex streamChangeMutex_
virtual void waitForStreamChange()
bool streamChangeIsNeeded_