This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/33892] [libstdc++ v3 parallel mode] Parallel mode algorithms use critical sections with global scope
- From: "bkoz at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Oct 2007 05:47:42 -0000
- Subject: [Bug libstdc++/33892] [libstdc++ v3 parallel mode] Parallel mode algorithms use critical sections with global scope
- References: <bug-33892-15121@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from bkoz at gcc dot gnu dot org 2007-10-30 05:47 -------
Patch posted here:
http://gcc.gnu.org/ml/gcc-patches/2007-10/msg01456.html
This stuff looks pretty good to me: Jakub?
The only comment I would have is that this looks strikingly like the
scoped_lock idiom on a omp_lock_t. Turning this into a __gnu_cxx::scoped_lock
would mean a higher likelihood of exception-safe usage.
That could always be a follow-on patch.
-benjamin
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33892