mirror of
https://github.com/boostorg/filesystem.git
synced 2026-02-27 17:02:19 +00:00
locale_multithread_test initial commit
[SVN r83028]
This commit is contained in:
32
test/locale_multithread_test.cpp
Normal file
32
test/locale_multithread_test.cpp
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user