| Reference | Class Hierarchy | Class Index | Member Index |

The asio::thread class implements the smallest possible subset of the functionality of boost::thread. It is intended to be used only for starting a thread and waiting for it to exit. If more extensive threading capabilities are required, you are strongly advised to use something else.
asio::io_service io_service; // ... asio::thread t(boost::bind(&asio::io_service::run, &io_service)); // ... t.join();
Public Member Functions | |
| template<typename Function> | |
| thread (Function f) | |
| Start a new thread that executes the supplied function. | |
| ~thread () | |
| Destructor. | |
| void | join () |
| Wait for the thread to exit. | |
| asio::thread::thread | ( | Function | f | ) | [explicit] |
| asio::thread::~thread | ( | ) |
Destructor.
| void asio::thread::join | ( | ) |