Where can I find good, solid documentation for the C++0x synchronization primitives? [closed]
Asked Answered
P

2

18

I've seen articles on ::std::thread and ::std::forward and such, but I have seen no good articles on ::std::atomic. There is, of course, the standards proposal paper, but I haven't seen any good documentation for someone who just wanted to use the facility.

Is there any? Where can I find it?

Pyrexia answered 8/2, 2011 at 20:49 Comment(0)
S
15

The just::thread library has decent documentation and was developed by Anthony Williams, author of C++ Concurrency in Action and maintainer of the Boost thread library.

Stationary answered 8/2, 2011 at 20:59 Comment(5)
In fact, it explains, in great detail, exactly what the 'memory order' arguments to the various member functions mean.Pyrexia
You didn't have the concurrency in action link previously, and copied it from the other answer, but you also added the useful hint that the author of the library you pointed at and the book are one and the same, and lent credibility to the book author by linking him to Boost. Yours is the better answer by far.Pyrexia
@Omnifarious: I got the book link (note the URL) and the other info from the documentation link I had originally.Stationary
@Pyrexia Your link to the gnu online documentation doesn't seem to be what you thought it was (must have changed content). Perhaps update.Weihs
@Walter: Ahh, yes, the various documentation pages get random names that are not stable. sigh Here's a link to the list of documentation modules: gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/modules.html - The atomics and concurrency section.Pyrexia
A
6

There's also the C++ Concurrency in Action book by Anthony Williams.

Apace answered 8/2, 2011 at 21:34 Comment(2)
Because this interests me so, I went and purchased the early access edition of this book along with a copy of the paper edition when it goes to print. It really does cover the topic thoroughly and well. I'm impressed.Pyrexia
@Omnifarious: I do have the MEAP edition of the book for some time and reviewed it before posting the answer (didn't post the answer because Google told me so). Glad it was useful for you.Apace

© 2022 - 2024 — McMap. All rights reserved.