[Bug libstdc++/33892] [libstdc++ v3 parallel mode] Parallel mode algorithms use critical sections with global scope

bkoz at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue Oct 30 05:47:00 GMT 2007



------- 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



More information about the Gcc-bugs mailing list