25 lines
384 B
C++
Raw Normal View History

2016-03-13 13:35:51 +01:00
#include <boost/filesystem.hpp>
#include <boost/thread.hpp>
2016-07-09 11:21:54 +02:00
namespace {
2016-03-13 13:35:51 +01:00
2016-07-09 11:21:54 +02:00
boost::mutex m1;
boost::recursive_mutex m2;
2016-03-13 13:35:51 +01:00
2016-07-09 11:21:54 +02:00
void threadmain()
{
boost::lock_guard<boost::mutex> lock1(m1);
boost::lock_guard<boost::recursive_mutex> lock2(m2);
2016-03-13 13:35:51 +01:00
2016-07-09 11:21:54 +02:00
boost::filesystem::path p(boost::filesystem::current_path());
}
2016-03-13 13:35:51 +01:00
}
2016-07-09 11:21:54 +02:00
int main()
{
2016-03-13 13:35:51 +01:00
boost::thread foo(threadmain);
foo.join();
return 0;
}