27 #include "boost/thread/thread.hpp"
28 #include "boost/thread/barrier.hpp"
33 using namespace pwiz::util;
93 unit_assert(info2.otherRelations.begin()->first ==
"has_regexp");
156 cerr <<
"Exception in worker thread: " << e.what() << endl;
160 cerr <<
"Unhandled exception in worker thread." << endl;
166 boost::barrier testBarrier(testThreadCount);
167 boost::thread_group testThreadGroup;
168 for (
int i=0; i < testThreadCount; ++i)
170 testThreadGroup.join_all();
174 int main(
int argc,
char* argv[])
178 if (argc>1 && !strcmp(argv[1],
"-v"))
os_ = &cout;