From: John F. <jo...@us...> - 2010-04-22 08:35:35
|
Update of /cvsroot/ingex/ingex/studio/ace-tao/Recorder In directory sfp-cvsdas-4.v30.ch3.sourceforge.com:/tmp/cvs-serv5053 Modified Files: IngexRecorder.h Log Message: Use mutex when accessing track enables Index: IngexRecorder.h =================================================================== RCS file: /cvsroot/ingex/ingex/studio/ace-tao/Recorder/IngexRecorder.h,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** IngexRecorder.h 18 Sep 2009 16:14:13 -0000 1.10 --- IngexRecorder.h 22 Apr 2010 08:35:26 -0000 1.11 *************** *** 190,196 **** --- 190,204 ---- // Enables std::vector<bool> mChannelEnable; + ACE_Thread_Mutex mTrackEnableMutex; std::vector<bool> mTrackEnable; public: + bool TrackEnable(unsigned int i) + { + ACE_Guard<ACE_Thread_Mutex> guard(mTrackEnableMutex); + return mTrackEnable[i]; + } + + public: // MXF filenames std::string mFileNames[MAX_CHANNELS * 5]; |