"xtime" ambiguous symbol in MSVC 12
Hi I get a C2872 when including "chrono" (allegedly line 738) from MSVC 12, and also needing boost::mutex. I believe the boost mutex is a bit faster than std::mutex, and I need that. Many thanks, Kevin
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/
participants (2)
-
Kevin Williams
-
Niall Douglas