locale_multithread_test initial commit

[SVN r83028]
This commit is contained in:
Beman Dawes
2013-02-19 21:06:41 +00:00
parent 842f91ada2
commit 68efe31588
2 changed files with 38 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
#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;
}