summaryrefslogtreecommitdiffstats
path: root/src/boost/libs/thread/test/test_7666.cpp
blob: 1ec71dff8390d8a8d379397375a9b06ab09723da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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_only.hpp>

void myFunc()
{
  boost::this_thread::sleep(boost::posix_time::seconds(5));
}

int main(int, char **)
{
  boost::thread p(myFunc);

  p.join();

  return 0;
}