mirror of
https://github.com/boostorg/filesystem.git
synced 2026-02-27 17:02:19 +00:00
32 lines
417 B
C++
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;
|
|
} |