|
Boost Users : |
Subject: Re: [Boost-users] storing a boost.thread in a boost shared ptr
From: Igor R (boost.lists_at_[hidden])
Date: 2011-03-21 06:21:28
> boost::thread t(boost::bind(&boost::asio::io_service::run, io.get()));
>
> and io is defined as:
>
> boost::shared_ptr<boost::asio::io_service> io;
boost::thread t(&boost::asio::io_service::run, io);
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net