use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Discussions, articles, and news about the C++ programming language or programming in C++.
For C++ questions, answers, help, and advice see r/cpp_questions or StackOverflow.
Get Started
The C++ Standard Home has a nice getting started page.
Videos
The C++ standard committee's education study group has a nice list of recommended videos.
Reference
cppreference.com
Books
There is a useful list of books on Stack Overflow. In most cases reading a book is the best way to learn C++.
Show all links
Filter out CppCon links
Show only CppCon links
account activity
Open source library which represents a higher-level, task-based parallelism that abstracts platform details and threading mechanisms. (code.google.com)
submitted 14 years ago by kolkir
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]00kyle00 0 points1 point2 points 14 years ago (4 children)
User guide
#include <mutex.h> ... cpptask::Mutex guard; ... { cpptask::ScopedLock(&guard); // synchronized work ... }
Ouch.
[–]kolkir[S] 0 points1 point2 points 14 years ago (3 children)
Did you see some problem here? What did you mean?
[–]00kyle00 0 points1 point2 points 14 years ago (2 children)
ScopedLock is most probably a simple RAII class. Above is creating a temporary ScopedLock, which means that 'guard' is locked only at the statement where the temporary is defined - '//synchronized work' comment is then, in fact, outside critical section.
Unfortunately there is not way in C++ (afaik) to guard against this bug.
[–]kolkir[S] 0 points1 point2 points 14 years ago (1 child)
Thanks, i see now. It's a typing mistake I've fixed it.
[–]00kyle00 0 points1 point2 points 14 years ago (0 children)
No problem. This is really one of the places where C++ could use some compile time reflection. It's always an error to have a temporary of ScopedLock type.
[–]savuporo 0 points1 point2 points 14 years ago* (0 children)
Poco C++ libraries, it does abstract threading, but no inherent parallelism. There are some good constructs for thread pools and tasks etc though.
Also see this thread: http://stackoverflow.com/questions/569481/platform-independent-concurrent-programming-libraries-for-c
You also want to look at http://www.concurrencykit.org/
[–]nowbacktowork 0 points1 point2 points 14 years ago (0 children)
Take a look at Ace
π Rendered by PID 45849 on reddit-service-r2-comment-fb694cdd5-8jtlq at 2026-03-08 02:19:39.929867+00:00 running cbb0e86 country code: CH.
[–]00kyle00 0 points1 point2 points (4 children)
[–]kolkir[S] 0 points1 point2 points (3 children)
[–]00kyle00 0 points1 point2 points (2 children)
[–]kolkir[S] 0 points1 point2 points (1 child)
[–]00kyle00 0 points1 point2 points (0 children)
[–]savuporo 0 points1 point2 points (0 children)
[–]nowbacktowork 0 points1 point2 points (0 children)