2015-12-02 01:05:35 +03:00
|
|
|
#include <boost/filesystem.hpp>
|
|
|
|
#include <boost/thread.hpp>
|
|
|
|
|
2016-05-16 17:34:04 +03:00
|
|
|
namespace {
|
2015-12-02 01:05:35 +03:00
|
|
|
|
2016-05-16 17:34:04 +03:00
|
|
|
boost::mutex m1;
|
|
|
|
boost::recursive_mutex m2;
|
2015-12-02 01:05:35 +03:00
|
|
|
|
2016-05-16 17:34:04 +03:00
|
|
|
void threadmain()
|
|
|
|
{
|
|
|
|
boost::lock_guard<boost::mutex> lock1(m1);
|
|
|
|
boost::lock_guard<boost::recursive_mutex> lock2(m2);
|
2015-12-02 01:05:35 +03:00
|
|
|
|
2016-05-16 17:34:04 +03:00
|
|
|
boost::filesystem::path p(boost::filesystem::current_path());
|
|
|
|
}
|
2015-12-02 01:05:35 +03:00
|
|
|
}
|
|
|
|
|
2016-05-16 17:34:04 +03:00
|
|
|
int main()
|
|
|
|
{
|
2015-12-02 01:05:35 +03:00
|
|
|
boost::thread foo(threadmain);
|
|
|
|
foo.join();
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|