QuoteOriginally posted by: outrunQuoteOriginally posted by: CuchulainnQuoteOriginally posted by: outrun..for the job queue, I'm going to test this thread safe adaptation of the std:: queue. It uses boost::mutex and has some nice features like the thread's not having to keep polling the queue when it's (temporary) empty.
http://www.justsoftwaresolutions.co.uk/ ... ables.html???? "examples use the types and functions from the upcoming 1.35 release of Boost): "I would use . my thread-safe queue. PPL concurrent queue. TPL dittoThis way you will get bogged down in detail. I have done it already in C++ and C#.That's all MS / Windows specific, and I think it already works.. but you're right in general only this is so tiny it's not worthwhile to introduce these external dependencies (and I like the condition variable non polling thing)* I got an answer about random123 with boost (will post it later)* I almost got a simple gbm_vanilla_call distribution<> V(...); finished, compatible with boost::random::uniform_int_distribution<> six(1,6);My queue is not Windows specific, but I stick to PPL and TPL for the moment. You will have to test your new queue + sentinel/poison pill.Random 123 does look promising, indeed.We need N(0,1) variates,yes?//Boost should have concurrent collections.