PATCH: _Atomic_swap implementation for g++-v3/bits/stl_threads.h
Nathan Myers
ncm@nospam.cantrip.org
Wed Oct 3 21:58:00 GMT 2001
On Wed, Oct 03, 2001 at 04:21:36PM -0500, Loren James Rittle wrote:
> Tested by the author of the patch against more complex use cases
> (including those involving threads which we have no current way to
> include in the dejagnu testsuite in a portable manner). Tested by the
> committer (i.e. me) by bootstrap and check (against new test case that
> had failed) on i386-unknown-freebsd4.3. Approved by Benjamin and
> myself. Thanks for the contribution Dimitris.
>
> 2001-10-03 Dimitris Vyzovitis <vyzo@media.mit.edu>
>
> * include/bits/stl_threads.h (_Atomic_swap): New function.
> (_Swap_lock_struct<__dummy>::_S_swap_lock): New data.
> * testsuite/ext/rope.cc: New file.
Please forgive me if this has already been discussed, but can't
this be done orders of magnitude more efficiently by delegating
to the existing libstdc++ atomic operations?
Nathan Myers
ncm@cantrip.org
More information about the Libstdc++
mailing list