summaryrefslogtreecommitdiffstats
path: root/Tests/FindBoost/Test/main.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/FindBoost/Test/main.cxx')
-rw-r--r--Tests/FindBoost/Test/main.cxx24
1 files changed, 11 insertions, 13 deletions
diff --git a/Tests/FindBoost/Test/main.cxx b/Tests/FindBoost/Test/main.cxx
index 0f44f30..6e8b5da 100644
--- a/Tests/FindBoost/Test/main.cxx
+++ b/Tests/FindBoost/Test/main.cxx
@@ -1,24 +1,22 @@
#include <boost/filesystem.hpp>
#include <boost/thread.hpp>
-namespace
-{
-
- boost::mutex m1;
- boost::recursive_mutex m2;
+namespace {
- void
- threadmain()
- {
- boost::lock_guard<boost::mutex> lock1(m1);
- boost::lock_guard<boost::recursive_mutex> lock2(m2);
+boost::mutex m1;
+boost::recursive_mutex m2;
- boost::filesystem::path p(boost::filesystem::current_path());
- }
+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() {
+int main()
+{
boost::thread foo(threadmain);
foo.join();