summaryrefslogtreecommitdiff
path: root/decoder/trule.cc
diff options
context:
space:
mode:
authorChris Dyer <cdyer@cs.cmu.edu>2011-03-23 22:53:44 -0400
committerChris Dyer <cdyer@cs.cmu.edu>2011-03-23 22:53:44 -0400
commit68b73d03e52a0e0e92e3cfd2412e5a280e9316a0 (patch)
tree12a07931a122ad569b4d3ac819a1badbb07782c7 /decoder/trule.cc
parent6353b6e86b90d42513de2aad97c419031d01dca3 (diff)
remove thread-local stuff which was fragile on some build systems
Diffstat (limited to 'decoder/trule.cc')
-rw-r--r--decoder/trule.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/decoder/trule.cc b/decoder/trule.cc
index fda62741..40235542 100644
--- a/decoder/trule.cc
+++ b/decoder/trule.cc
@@ -5,7 +5,6 @@
#include "stringlib.h"
#include "tdict.h"
#include "rule_lexer.h"
-#include "threadlocal.h"
using namespace std;
@@ -99,7 +98,7 @@ TRule* TRule::CreateRuleMonolingual(const string& rule) {
namespace {
// callback for lexer
-THREADLOCAL int n_assigned=0;
+int n_assigned=0;
void assign_trule(const TRulePtr& new_rule, const unsigned int ctf_level, const TRulePtr& coarse_rule, void* extra) {
TRule *assignto=(TRule *)extra;
*assignto=*new_rule;