]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
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 | } |