On 7 Feb 2015 at 8:20, Joren Heit wrote:
My original question was about how to benchmark my own version (fairly) against boost, hence this mailing list. As far as I was concerned, this discussion could have been over after the link to all the benchmarks. I never intended this discussion to be about thread safety. However, I can't stress enough that I'm very thankful for all the help! ;-)
I think we ignored your original question as the question of its correctness of thread safety is more important. When, and only when, it is unit test demonstrated to be correct is it worth thinking about benchmarking. You'll find to gain correctness/reliability there are a ton of unfortunate tradeoffs that have to be made. I think the reason we're being so helpful is because we all suspect that signals and slots is one of those patterns which sits on the cusp of being just simple enough to implement lock free vs just complex enough it isn't worth implementing lock free. I suspect none of us know the answer to that, but it's the kind of thing a certain type of Boost programmer lies awake at night wondering. I think we'd all also like to know a definitive answer. Perhaps Tony you might consider a lock free signals and slots presentation for a future BoostCon eh? Niall -- ned Productions Limited Consulting http://www.nedproductions.biz/ http://ie.linkedin.com/in/nialldouglas/