Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r81281 - trunk/libs/thread/test
From: vicente.botet_at_[hidden]
Date: 2012-11-10 05:30:05


Author: viboes
Date: 2012-11-10 05:30:05 EST (Sat, 10 Nov 2012)
New Revision: 81281
URL: http://svn.boost.org/trac/boost/changeset/81281

Log:
Thread: Added test for #7666
Added:
   trunk/libs/thread/test/test_7666.cpp (contents, props changed)

Added: trunk/libs/thread/test/test_7666.cpp
==============================================================================
--- (empty file)
+++ trunk/libs/thread/test/test_7666.cpp 2012-11-10 05:30:05 EST (Sat, 10 Nov 2012)
@@ -0,0 +1,23 @@
+// Copyright (C) 2010 Vicente Botet
+//
+// Distributed under the Boost Software License, Version 1.0. (See accompanying
+// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+
+#define BOOST_CHRONO_VERSION 2
+#define BOOST_THREAD_VERSION 2
+
+#include <boost/thread/thread.hpp>
+
+void myFunc()
+{
+ boost::this_thread::sleep(boost::posix_time::seconds(5));
+}
+
+int main(int, char **)
+{
+ boost::thread p(myFunc);
+
+ p.join();
+
+ return 0;
+}


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk