Skip to content

Commit

Permalink
Replace the last usages of boost::atomic
Browse files Browse the repository at this point in the history
  • Loading branch information
K-ballo committed Mar 13, 2018
1 parent 737f04b commit 2e99d24
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions hpx/util/lockfree/deque.hpp
Expand Up @@ -15,9 +15,6 @@
// contention, all operations have a constant complexity, except for the dtor.
////////////////////////////////////////////////////////////////////////////////

// hpxinspect:nodeprecatedinclude:boost/atomic.hpp
// hpxinspect:nodeprecatedname:boost::atomic

#if !defined(HPX_F985C12D_03E7_4E25_8CB1_018A56A265E0)
#define HPX_F985C12D_03E7_4E25_8CB1_018A56A265E0

Expand All @@ -26,9 +23,9 @@
#include <hpx/util/lockfree/detail/tagged_ptr_pair.hpp>
#include <hpx/util/lockfree/freelist.hpp>

#include <boost/atomic.hpp>
#include <boost/lockfree/detail/tagged_ptr.hpp>

#include <atomic>
#include <cstddef>
#include <iostream>
#include <type_traits>
Expand All @@ -49,7 +46,7 @@ template <typename T>
struct deque_node //-V690
{
typedef detail::tagged_ptr<deque_node> pointer;
typedef boost::atomic<pointer> atomic_pointer;
typedef std::atomic<pointer> atomic_pointer;

typedef typename pointer::tag_t tag_t;

Expand Down Expand Up @@ -79,7 +76,7 @@ struct deque_anchor //-V690
typedef typename node::tag_t tag_t;

typedef tagged_ptr_pair<node, node> pair;
typedef boost::atomic<pair> atomic_pair;
typedef std::atomic<pair> atomic_pair;

private:
atomic_pair pair_;
Expand Down

0 comments on commit 2e99d24

Please sign in to comment.