userver: userver/utils/impl/disable_core_dumps.hpp Source File
Loading...
Searching...
No Matches
disable_core_dumps.hpp
1#pragma once
2
3#include <memory>
4
5USERVER_NAMESPACE_BEGIN
6
7namespace utils::impl {
8
9class DisableCoreDumps final {
10 public:
11 DisableCoreDumps();
12
13 DisableCoreDumps(DisableCoreDumps&&) = delete;
14 DisableCoreDumps& operator=(DisableCoreDumps&&) = delete;
15 ~DisableCoreDumps();
16
17 bool IsValid() const noexcept;
18 void Invalidate() noexcept;
19
20 private:
21 class Impl;
22
23 std::unique_ptr<Impl> impl_;
24};
25
26} // namespace utils::impl
27
28USERVER_NAMESPACE_END