This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


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

Re: PATCH: _Atomic_swap implementation for g++-v3/bits/stl_threads.h


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


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