|
Boost Users : |
Subject: Re: [Boost-users] boost - asio - advise
From: Boris Schaeling (boris_at_[hidden])
Date: 2009-05-09 15:37:43
On Sat, 09 May 2009 21:09:47 +0200, Tim Pynegar <tim_at_[hidden]>
wrote:
> [...]The question is really should i put in a mutex lock in my sendto
> function that call's the
> async_send_to that is unlocked when i recieve the handlesentto callback
> that's called
> when the async_send_to is finished. If i do this doesn't this basically
What happens if you call boost::asio::io_service::run() only in main() and
not in a new thread? Your application will then be single-threaded. If
there are no crashs then anymore you probably use shared resources in your
threads without synchronizing them properly.
Boris
> [...]
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