]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/thread/test/test_8586.cpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / thread / test / test_8586.cpp
1 // Copyright (C) 2013 Vicente Botet
2 //
3 // Distributed under the Boost Software License, Version 1.0. (See accompanying
4 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5
6 #include <boost/thread/thread.hpp>
7 #include <iostream>
8
9 void hello_world()
10 {
11 std::cout << "Hello from thread!" << std::endl;
12 }
13
14 int main()
15 {
16 boost::thread my_thread(&hello_world);
17 my_thread.join();
18 }