Files
filesystem/test/locale_multithread_test.cpp
Beman Dawes 68efe31588 locale_multithread_test initial commit
[SVN r83028]
2013-02-19 21:06:41 +00:00

32 lines
417 B
C++

#include <iostream>
#include <boost/thread.hpp>
#include <boost/filesystem/path.hpp>
using std::cout;
using std::endl;
namespace
{
void f1()
{
cout << "f1()" << endl;
}
void f2()
{
cout << "f2()" << endl;
}
}
int main()
{
boost::thread t1(f1);
boost::thread t2(f2);
cout << "t1.join()" << endl;
t1.join();
cout << "t2.join()" << endl;
t2.join();
cout << "all done" << endl;
}