This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]