Skip to content

Commit

Permalink
Debugging by D
Browse files Browse the repository at this point in the history
  • Loading branch information
lauraluebbert committed Feb 23, 2023
1 parent c0b7ade commit c78f8e1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ProcessReads.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -369,8 +369,11 @@ void MasterProcessor::processReads() {
assert(id == num_ids);
} else {
int initial_id = id;
std::cout << "A: id=initial_id=" << std::to_string(initial_id) << std::endl;
for (int i = 0; i < opt.threads; i++,id++) {
std::cout << "B: i=" << std::to_string(i) << " id=" << std::to_string(id) << " nt=" << std::to_string(nt) << std::endl;
if (id-initial_id >= nt) id = initial_id;
std::cout << "C: i=" << std::to_string(i) << " id=" << std::to_string(id) << " nt=" << std::to_string(nt) << std::endl;
workers.emplace_back(std::thread(BUSProcessor(index, opt, tc, *this, id,i)));
}
id = initial_id+nt;
Expand Down

0 comments on commit c78f8e1

Please sign in to comment.