[bind10-dev] require libboost_thread?

Michal 'vorner' Vaner michal.vaner at nic.cz
Wed Dec 15 11:57:22 UTC 2010


Hello

On Tue, Dec 14, 2010 at 10:37:17PM +0000, Evan Hunt wrote:
> > But I think the fact that we once tried to require a compiled boost
> > library warrants a discussion.  Are we planning to use the boost
> > thread library eventually?
> 
> Note that the headers-only version of asio includes its own thread
> implementation, asio::thread, which may be adequate for our future
> thread API needs.

It has thread class, but I wasn't able to find any kind of mutex there, which is
odd. And it says it can only start and wait for the thread to stop. If we ever
want to change priority or suspend the thread for a while, then we are out of
luck.

> If we ever do decide it's worthwhile to use boost::thread, though,
> then we should probably also make the switch to boost::asio, because
> the primary reason for using the non-boost version is to avoid having
> to link with an external boost library.

Agreed here. I somehow don't like the situation when I have single library
multiple times on my system, because each package wants to use its own copy.

Have a nice day

-- 
"It can be done in C++" says nothing. "It can be done in C++ easily" says nobody.

Michal 'vorner' Vaner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <https://lists.isc.org/pipermail/bind10-dev/attachments/20101215/3aa4675d/attachment.bin>


More information about the bind10-dev mailing list