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
commit918ed4bf919a55e3eb5d99d98c9b915921dc11ab (patch)
treea5739e7aa6444762a21f2b15ab9d633ec5059b49 /decoder/trule.cc
parent57a218e86e30d57d9795bccd280737c431f6b4e4 (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;