mirror of
https://github.com/boostorg/thread.git
synced 2026-01-24 06:22:12 +00:00
23
test/test_7666.cpp
Normal file
23
test/test_7666.cpp
Normal file
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user