diff --git a/include/seastar/core/deleter.hh b/include/seastar/core/deleter.hh index 8957c578cd..9646c143f4 100644 --- a/include/seastar/core/deleter.hh +++ b/include/seastar/core/deleter.hh @@ -22,6 +22,7 @@ #pragma once #ifndef SEASTAR_MODULE +#include #include #include #include @@ -113,7 +114,7 @@ private: /// \cond internal struct deleter::impl { - unsigned refs = 1; + std::atomic refs = 1; deleter next; impl(deleter next) : next(std::move(next)) {} virtual ~impl() {}