Boost logo

Boost Users :

Subject: Re: [Boost-users] "xtime" ambiguous symbol in MSVC 12
From: Niall Douglas (s_sourceforge_at_[hidden])
Date: 2015-02-19 08:46:37


On 19 Feb 2015 at 10:49, Kevin Williams wrote:

> I believe the boost mutex is a bit faster than std::mutex, and I need that.

I would be very surprised if this were the case. boost::mutex does a
lot more.

If you want faster mutexs, use a spinlock. e.g.
https://github.com/ned14/boost.spinlock/blob/master/include/boost/spin
lock/spinlock.hpp#L412 which can push 100m lock/unlocks per second
(see
https://ci.nedprod.com/view/Boost%20Thread-Expected-Permit/job/Boost.S
pinlock%20Test%20Linux%20GCC%204.8/228/console for a full set of
benchmarks on x64, ARMv7 are at
https://ci.nedprod.com/view/Boost%20Thread-Expected-Permit/job/Boost.S
pinlock%20Test%20ARMv7%20GCC%204.8/58/console).

Niall

-- 
ned Productions Limited Consulting
http://www.nedproductions.biz/ 
http://ie.linkedin.com/in/nialldouglas/



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