Changeset 2935 for branches


Ignore:
Timestamp:
Dec 31, 2012, 3:48:02 AM (10 years ago)
Author:
Peter
Message:

avoid multiple calls to join_all (and underlying join) which might be dangerous (even illegal)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/0.10-stable/test/rng-mt.cc

    r2933 r2935  
    121121
    122122  RNG::instance()->seed(0);
    123   threads.create_thread(visitor1);
    124   threads.join_all();
     123  boost::thread_group threads2;
     124  threads2.create_thread(visitor1);
     125  threads2.join_all();
    125126  suite.out() << "x: ";
    126127  std::copy(x.begin(), x.end(), std::ostream_iterator<int>(suite.out(), " "));
Note: See TracChangeset for help on using the changeset viewer.