tagged_ptr.hpp 637 B

123456789101112131415161718192021
  1. // tagged pointer, for aba prevention
  2. //
  3. // Copyright (C) 2008, 2016 Tim Blechmann
  4. //
  5. // Distributed under the Boost Software License, Version 1.0. (See
  6. // accompanying file LICENSE_1_0.txt or copy at
  7. // http://www.boost.org/LICENSE_1_0.txt)
  8. #ifndef BOOST_LOCKFREE_TAGGED_PTR_HPP_INCLUDED
  9. #define BOOST_LOCKFREE_TAGGED_PTR_HPP_INCLUDED
  10. #include <boost/config.hpp>
  11. #include <boost/lockfree/detail/prefix.hpp>
  12. #ifndef BOOST_LOCKFREE_PTR_COMPRESSION
  13. #include <boost/lockfree/detail/tagged_ptr_dcas.hpp>
  14. #else
  15. #include <boost/lockfree/detail/tagged_ptr_ptrcompression.hpp>
  16. #endif
  17. #endif /* BOOST_LOCKFREE_TAGGED_PTR_HPP_INCLUDED */