X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src2%2FcreaImageIOListener.h;h=fe65ed80075ae65797548e158390c959a16f366c;hb=33867ec27dd1743cd11b50939fdbb0f9ebd549f2;hp=32b4caa1adc51a6fdf5f1605aecf06b67b8050a4;hpb=595926ac27740a8822b6de9579e2e148c59f469c;p=creaImageIO.git diff --git a/src2/creaImageIOListener.h b/src2/creaImageIOListener.h index 32b4caa..fe65ed8 100644 --- a/src2/creaImageIOListener.h +++ b/src2/creaImageIOListener.h @@ -8,6 +8,7 @@ // Signal/slot mechanism #include #include +#include namespace creaImageIO { @@ -24,11 +25,11 @@ namespace creaImageIO ///Thread method called upon exiting void OnExit(); ///Sets the new state of adding files - void SetAddFilesState(bool addFiles){wxMutexLocker lock(mMutex);mAddFiles=addFiles;} + void SetAddFilesState(bool addFiles){boost::mutex::scoped_lock lock(mMutex);mAddFiles=addFiles;} ///Sets the new state of removing files - void SetRemoveFilesState(bool removeFiles){wxMutexLocker lock(mMutex);mRemoveFiles=removeFiles;} + void SetRemoveFilesState(bool removeFiles){boost::mutex::scoped_lock lock(mMutex);mRemoveFiles=removeFiles;} ///Sets the new monitored drive - void SetMonitoredDrive(const std::string& dr){wxMutexLocker lock(mMutex);mDrive=dr;} + void SetMonitoredDrive(const std::string& dr){boost::mutex::scoped_lock lock(mMutex);mDrive=dr;} ///Puts the name of the monitored drive in the given string void GetMonitoredDrive(std::string& drive){drive=mDrive;} @@ -48,7 +49,7 @@ namespace creaImageIO private: /// The mutex - wxMutex mMutex; + boost::mutex mMutex; /// Boolean that declares if the files that are read on CD mount should be added bool mAddFiles; /// Boolean that declares if, on CD unmount, the files that were in the drive should be removed