Ignore:
Timestamp:
Jul 18, 2019, 8:47:27 AM (3 years ago)
Author:
Peter
Message:

function to access number of threads in Scheduler. closes #914

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/scheduler.cc

    r3682 r3826  
    5656
    5757  Scheduler scheduler(2);
     58  int n_threads = scheduler.threads();
     59  if (n_threads != 2) {
     60    suite.add(false);
     61    suite.err() << "threads(): " << n_threads << " - expected: 2\n";
     62  }
    5863  std::vector<boost::shared_ptr<Sleeper> > sleeper;
    5964  sleeper.reserve(4);
Note: See TracChangeset for help on using the changeset viewer.