diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-11-06 13:44:46 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-11-06 13:44:46 +0200 |
commit | 702c5756d5a2050327603cb9e507c839f928a7a3 (patch) | |
tree | 2886b831eba8de926d42882fad8d043a2400ad4a /odb/details/shared-ptr/base.cxx | |
parent | e3fe7cd2d1bc82a60445412986ea31d30e494a3d (diff) |
Make shared_base counter atomic in C++11 and up
Diffstat (limited to 'odb/details/shared-ptr/base.cxx')
-rw-r--r-- | odb/details/shared-ptr/base.cxx | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/odb/details/shared-ptr/base.cxx b/odb/details/shared-ptr/base.cxx index e03d76e..77a571e 100644 --- a/odb/details/shared-ptr/base.cxx +++ b/odb/details/shared-ptr/base.cxx @@ -26,17 +26,6 @@ namespace odb return new not_shared (*this); } - bool shared_base:: - _dec_ref_callback () - { - bool r (--counter_ == 0); - - if (r) - r = callback_->zero_counter (callback_->arg); - - return r; - } - namespace bits { size_t* locator_common:: |