2012-09-06 Thiago Macieira <thiago.macieira@intel.com>
authorbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 6 Sep 2012 20:31:08 +0000 (20:31 +0000)
committerbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 6 Sep 2012 20:31:08 +0000 (20:31 +0000)
commit67518851535a5303a126201b2c68508c369f96ef
treefc46d4517215160085224e179732892943443922
parentf819bb7398c28c88bd12f95589ebae74d837cad4
2012-09-06  Thiago Macieira  <thiago.macieira@intel.com>

PR libstdc++/54172
        * libsupc++/guard.cc (__cxa_guard_acquire): Exit the loop earlier if
        we detect that another thread has had success. Don't compare_exchange
        from a finished state back to a waiting state. Comment.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191042 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/libsupc++/guard.cc