27#ifdef SEASTAR_ENABLE_ALLOC_FAILURE_INJECTION
38extern thread_local constinit volatile int critical_alloc_section;
40extern __thread
volatile int critical_alloc_section;
57class scoped_critical_alloc_section {
59 scoped_critical_alloc_section() {
63 internal::critical_alloc_section = internal::critical_alloc_section + 1;
65 ~scoped_critical_alloc_section() {
66 internal::critical_alloc_section = internal::critical_alloc_section - 1;
74inline bool is_critical_alloc_section() {
75 return bool(internal::critical_alloc_section);
82inline bool is_critical_alloc_section() {
Definition: critical_alloc_section.hh:80
Seastar API namespace.
Definition: abort_on_ebadf.hh:26