This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: PATCH: _Atomic_swap implementation for g++-v3/bits/stl_threads.h
- To: libstdc++ at gcc dot gnu dot org
- Subject: Re: PATCH: _Atomic_swap implementation for g++-v3/bits/stl_threads.h
- From: Nathan Myers <ncm at nospam dot cantrip dot org>
- Date: Wed, 3 Oct 2001 21:58:03 -0700
- References: <200110032121.f93LLaa00969@latour.rsch.comm.mot.com>
- Reply-To: libstdc++ at gcc dot gnu dot org
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