------- Comment #10 from ahu at ds9a dot nl 2005-11-08 10:15 ------- An easy solution might be to check for __gthread_active_p() in bits/basic_string before calling __exchange_and_add, and to do this locally and non-atomically otherwise.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24704