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:
authorNicola Bertoldi <bertoldi@fbk.eu>2015-05-04 10:51:12 +0300
committerNicola Bertoldi <bertoldi@fbk.eu>2015-05-04 10:51:12 +0300
commit6085a604943cd03e8ebcb41b94cfc5a493db9148 (patch)
tree625fce357a933d072b20763215c834da794fd672
parent90a982e579cf97914531b4d595e11c303baae179 (diff)
bug fix
-rw-r--r--moses/ContextScope.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/moses/ContextScope.h b/moses/ContextScope.h
index 5adaadf3c..cd12d6d32 100644
--- a/moses/ContextScope.h
+++ b/moses/ContextScope.h
@@ -92,12 +92,6 @@ class ContextScope
m_scratchpad[key] = ret;
return ret;
}
- if (!CreateNewIfNecessary) return ret;
- boost::upgrade_to_unique_lock<shared_mutex> xlock(lock);
- ret.reset(new T);
- m_scratchpad[key] = ret;
- return ret;
- }
ContextScope() { }