Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Heafield <github@kheafield.com>2014-03-17 18:08:25 +0400
committerKenneth Heafield <github@kheafield.com>2014-03-17 18:08:25 +0400
commit6bbf437ff77b7a594c48e6006b753b9595f9b4ca (patch)
tree505197e490ea90a26b1c5104ad506c7d44a84e85 /mert/MeteorScorer.h
parent69f92bd6e491a08c7fbdf45adc74708da7f11e35 (diff)
Surround locks with WITH_THREADS
Diffstat (limited to 'mert/MeteorScorer.h')
-rw-r--r--mert/MeteorScorer.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/mert/MeteorScorer.h b/mert/MeteorScorer.h
index 8e55c49a3..336833b97 100644
--- a/mert/MeteorScorer.h
+++ b/mert/MeteorScorer.h
@@ -5,7 +5,9 @@
#include <string>
#include <vector>
+#ifdef WITH_THREADS
#include <boost/thread/mutex.hpp>
+#endif
#include "Types.h"
#include "StatisticsBasedScorer.h"
@@ -64,7 +66,9 @@ private:
std::string meteor_w;
ofdstream* m_to_meteor;
ifdstream* m_from_meteor;
- boost::mutex* mtx;
+#ifdef WITH_THREADS
+ mutable boost::mutex mtx;
+#endif // WITH_THREADS
// data extracted from reference files
std::vector<std::string> m_references;