summaryrefslogtreecommitdiffstats
path: root/Tests/FindBoost/Test/main.cxx
blob: 0f44f30b0811504c4b3e8bac4c5cba6c5286b52e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#include <boost/filesystem.hpp>
#include <boost/thread.hpp>

namespace
{

  boost::mutex m1;
  boost::recursive_mutex m2;

  void
  threadmain()
  {
    boost::lock_guard<boost::mutex> lock1(m1);
    boost::lock_guard<boost::recursive_mutex> lock2(m2);

    boost::filesystem::path p(boost::filesystem::current_path());
  }

}

int main() {
  boost::thread foo(threadmain);
  foo.join();

  return 0;
}