|
Boost Users : |
Subject: Re: [Boost-users] [asio] Error running as Windows service; runs fine from console
From: Igor R (boost.lists_at_[hidden])
Date: 2010-09-17 03:00:57
> That won't work; server::start() gets called on the service manager thread,
> too, immediately after the ctor.
Merely move async_accept to another function, then call
io_service_.post(...). This way async_accept will be performed on an
io_service thread.
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