Closed DarkerStar closed 8 years ago
Wow - a whole bunch of samples. Great! I'll be catching up on updating the site this coming weekend, so I'll take a look then. Thanks.
Thanks for the great samples and for creating the much needed concurrency section! I've actually cut it down to just 3 samples for the following reasons:
std::lock
sample would be very useful, but I felt like your multiple locks one was overcomplicated. If you want to have a go at writing a simpler one, please go ahead! Remember that samples should demonstrate one simple thing and not focus on specific examples (that's why I called the site C++ samples, not C++ examples).Other than that, I just did a bit of tidying up, rewording, and simplifying some things. Once again, thanks for the contribution!
All good points!
I'll make a new std::lock
example that focuses on the actual locking without any extra cruft.
I'll also make a simpler, more focused sample for std::mutex
, and maybe something atomic (which will possibly be the same sample), and I'll think of something for condition variables, too.
I thought concurrency was a big enough topic that it deserved its own section. Included are six examples:
std::promise
andstd::future
)std::async()
)std::mutex
,std::unique_lock
,std::condition_variable
)std::lock()
)