diff options
author | John Langford <jl@humpty.(none)> | 2010-09-27 03:37:25 +0400 |
---|---|---|
committer | John Langford <jl@humpty.(none)> | 2010-09-27 03:37:25 +0400 |
commit | e8b3190a12677787103ce3c0eb0f50f2f190259c (patch) | |
tree | d45142732eba85170b8585e1d8949ec8721f3d92 /parser.cc | |
parent | b1debe5827a0038d43b087e1a7fc273cb1dbfc36 (diff) |
fixed (hopefully) final threading bug from Nikos.
Diffstat (limited to 'parser.cc')
-rw-r--r-- | parser.cc | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |