2010-11-25 François Dumont <francois.cppdevs@free.fr> * src/debug.cc: Introduce a mutex pool in get_safe_base_mutex. Move code used to manipulate sequence safe iterators from safe iterator methods to safe sequence ones. Remove usage of safe iterator mutex, keep _Safe_iterator_base::_M_get_mutex for library backward binary compatibility. * src/Makefile.am: Build debug.cc in gnu++0x mode for _Hash_impl usage. * src/Makefile.in: Regenerate * include/debug/safe_base.h: Add _Safe_iterator_base _M_invalidate and _M_reset. Add _Safe_sequence_base _M_attach, _M_attach_single, _M_detach and _M_detach_single. * include/debug.safe_iterator.h, safe_iterator.tcc: Remove _Safe_iterator _M_invalidate and _M_invalidate_single. Implement all methods in terms of normal iterators rather than safe ones. * include/debug/safe_sequence.h: Replace _Safe_sequence _M_transfe_iter with _M_transfer_from_if taking the source sequence and a predicate signaling when a safe iterator shall be transfered. Add _Equal_to predicate. * include/debug/safe_sequence.tcc: New. * include/Makefile.am: Adjust. * include/Makefile.in: Regenerate. * include/debug/forward_list: Swap safe iterators in move constructor. Do not invalidate before begin in _M_invalidate_all method. Reimplement safe methods using normal iterators rather than safe ones. * include/debug/set.h, unordered_map, multiset.h, vector, unordered_set, deque, map.h, list, multimap.h: Reimplement safe method using normal iterators rather than safe ones. * testsuite/23_containers/forward_list/debug/clear.cc, swap.cc, move_constructor.cc, splice_after.cc, splice_after1.cc, splice_after2.cc, splice_after3.cc, splice_after4.cc: New. * testsuite/23_containers/vector/debug/multithreaded_swap.cc: New. From-SVN: r167152
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| Makefile.am | Loading commit data... | |
| Makefile.in | Loading commit data... | |
| allocator-inst.cc | Loading commit data... | |
| atomic.cc | Loading commit data... | |
| bitmap_allocator.cc | Loading commit data... | |
| chrono.cc | Loading commit data... | |
| codecvt.cc | Loading commit data... | |
| compatibility-c++0x.cc | Loading commit data... | |
| compatibility-debug_list.cc | Loading commit data... | |
| compatibility-ldbl.cc | Loading commit data... | |
| compatibility-list.cc | Loading commit data... | |
| compatibility-parallel_list.cc | Loading commit data... | |
| compatibility.cc | Loading commit data... | |
| complex_io.cc | Loading commit data... | |
| concept-inst.cc | Loading commit data... | |
| condition_variable.cc | Loading commit data... | |
| ctype.cc | Loading commit data... | |
| debug.cc | Loading commit data... | |
| debug_list.cc | Loading commit data... | |
| ext-inst.cc | Loading commit data... | |
| fstream-inst.cc | Loading commit data... | |
| functexcept.cc | Loading commit data... | |
| future.cc | Loading commit data... | |
| globals_io.cc | Loading commit data... | |
| hash-long-double-aux.cc | Loading commit data... | |
| hash_c++0x.cc | Loading commit data... | |
| hash_tr1.cc | Loading commit data... | |
| hashtable-aux.cc | Loading commit data... | |
| hashtable_c++0x.cc | Loading commit data... | |
| hashtable_tr1.cc | Loading commit data... | |
| ios-inst.cc | Loading commit data... | |
| ios.cc | Loading commit data... | |
| ios_failure.cc | Loading commit data... | |
| ios_init.cc | Loading commit data... | |
| ios_locale.cc | Loading commit data... | |
| iostream-inst.cc | Loading commit data... | |
| istream-inst.cc | Loading commit data... | |
| istream.cc | Loading commit data... | |
| limits.cc | Loading commit data... | |
| list.cc | Loading commit data... | |
| locale-inst.cc | Loading commit data... | |
| locale.cc | Loading commit data... | |
| locale_facets.cc | Loading commit data... | |
| locale_init.cc | Loading commit data... | |
| localename.cc | Loading commit data... | |
| math_stubs_float.cc | Loading commit data... | |
| math_stubs_long_double.cc | Loading commit data... | |
| misc-inst.cc | Loading commit data... | |
| mt_allocator.cc | Loading commit data... | |
| mutex.cc | Loading commit data... | |
| ostream-inst.cc | Loading commit data... | |
| parallel_list.cc | Loading commit data... | |
| parallel_settings.cc | Loading commit data... | |
| pool_allocator.cc | Loading commit data... | |
| sstream-inst.cc | Loading commit data... | |
| stdexcept.cc | Loading commit data... | |
| streambuf-inst.cc | Loading commit data... | |
| streambuf.cc | Loading commit data... | |
| string-inst.cc | Loading commit data... | |
| strstream.cc | Loading commit data... | |
| system_error.cc | Loading commit data... | |
| thread.cc | Loading commit data... | |
| tree.cc | Loading commit data... | |
| valarray-inst.cc | Loading commit data... | |
| wlocale-inst.cc | Loading commit data... | |
| wstring-inst.cc | Loading commit data... |