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

github.com/moses-smt/vowpal_wabbit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Langford <jl@humpty.(none)>2010-09-27 03:37:25 +0400
committerJohn Langford <jl@humpty.(none)>2010-09-27 03:37:25 +0400
commite8b3190a12677787103ce3c0eb0f50f2f190259c (patch)
treed45142732eba85170b8585e1d8949ec8721f3d92 /parser.cc
parentb1debe5827a0038d43b087e1a7fc273cb1dbfc36 (diff)
fixed (hopefully) final threading bug from Nikos.
Diffstat (limited to 'parser.cc')
-rw-r--r--parser.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/parser.cc b/parser.cc
index d78f1dfc..12cd6e1d 100644
--- a/parser.cc
+++ b/parser.cc
@@ -619,7 +619,7 @@ example* get_example(size_t thread_num)
if (parsed_index != used_index[thread_num]) {
size_t ring_index = used_index[thread_num]++ % ring_size;
if (!(examples+ring_index)->in_use)
- cout << used_index[thread_num] << " " << parsed_index << " " << thread_num << " " << ring_index << " " << (examples+ring_index-1)->in_use << endl;
+ cout << used_index[thread_num] << " " << parsed_index << " " << thread_num << " " << ring_index << endl;
assert((examples+ring_index)->in_use);
pthread_mutex_unlock(&examples_lock);
return examples + ring_index;