|
Last change
on this file since 47 was
29,
checked in by landauf, 17 years ago
|
|
updated boost from 1_33_1 to 1_34_1
|
|
File size:
479 bytes
|
| Line | |
|---|
| 1 | // Copyright (C) 2001-2003 |
|---|
| 2 | // William E. Kempf |
|---|
| 3 | // |
|---|
| 4 | // Distributed under the Boost Software License, Version 1.0. (See accompanying |
|---|
| 5 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
|---|
| 6 | |
|---|
| 7 | #include <boost/thread/thread.hpp> |
|---|
| 8 | #include <boost/bind.hpp> |
|---|
| 9 | #include <iostream> |
|---|
| 10 | |
|---|
| 11 | void helloworld(const char* who) |
|---|
| 12 | { |
|---|
| 13 | std::cout << who << "says, \"Hello World.\"" << std::endl; |
|---|
| 14 | } |
|---|
| 15 | |
|---|
| 16 | int main() |
|---|
| 17 | { |
|---|
| 18 | boost::thread thrd(boost::bind(&helloworld, "Bob")); |
|---|
| 19 | thrd.join(); |
|---|
| 20 | } |
|---|
Note: See
TracBrowser
for help on using the repository browser.