24#ifdef SEASTAR_DEBUG_SHARED_PTR
30#include <seastar/core/on_internal_error.hh>
31#include <seastar/util/modules.hh>
36extern logger seastar_logger;
42class debug_shared_ptr_counter_type {
44 std::thread::id _cpu = std::this_thread::get_id();
46 debug_shared_ptr_counter_type(
long x) noexcept : _counter(x) {}
47 operator long()
const {
51 debug_shared_ptr_counter_type& operator++() {
56 long operator++(
int) {
60 debug_shared_ptr_counter_type& operator--() {
65 long operator--(
int) {
71 if (__builtin_expect(_cpu != std::this_thread::get_id(),
false)) {
Seastar API namespace.
Definition: abort_on_ebadf.hh:26
void on_fatal_internal_error(logger &logger, std::string_view reason) noexcept