mirror of
https://github.com/boostorg/thread.git
synced 2026-01-22 05:42:37 +00:00
14 lines
238 B
C++
14 lines
238 B
C++
#include <boost/thread/thread.hpp>
|
|
#include <iostream>
|
|
|
|
struct helloworld
|
|
{
|
|
helloworld() { }
|
|
void operator()() { std::cout << "Hello World." << std::endl; }
|
|
};
|
|
|
|
int main()
|
|
{
|
|
boost::thread thrd(helloworld());
|
|
thrd.join();
|
|
} |