Boost logo

Boost Users :

Subject: Re: [Boost-users] TCP resolver creates TppWorkerThreads on windows only
From: niXman (i.nixman_at_[hidden])
Date: 2014-07-14 16:08:28


Chris Stankevitz 2014-07-15 00:04:
> Hello,
>
> When I run the following code on windows, some threads are created,
> presumably by winsock. These threads are "named" _TppWorkerThread.
> This does not happen on linux.
>
> These threads do not stop when all the boost objects go out of scope,
> but I wish they did.
>
> Q1: Am I doing something wrong?
>
> Q2: Is there a boost way for me to stop these threads?

Hi,

from:
http://www.boost.org/doc/libs/1_55_0/doc/html/boost_asio/overview/implementation.html

"An additional thread per io_service is used to emulate asynchronous
host resolution. This thread is created on the first call to either
ip::tcp::resolver::async_resolve() or
ip::udp::resolver::async_resolve()."

-- 
Regards, niXman
___________________________________________________
Dual-target(32 & 64-bit) MinGW-W64 compilers for 32 and 64-bit Windows:
http://sourceforge.net/projects/mingw-w64/
___________________________________________________
Another online IDE: http://liveworkspace.org/

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