1
#pragma once
2

            
3
#include "envoy/api/os_sys_calls_hot_restart.h"
4

            
5
#include "source/common/singleton/threadsafe_singleton.h"
6

            
7
namespace Envoy {
8
namespace Api {
9

            
10
class HotRestartOsSysCallsImpl : public HotRestartOsSysCalls {
11
public:
12
  // Api::HotRestartOsSysCalls
13
  SysCallIntResult shmOpen(const char* name, int oflag, mode_t mode) override;
14
  SysCallIntResult shmUnlink(const char* name) override;
15
};
16

            
17
using HotRestartOsSysCallsSingleton = ThreadSafeSingleton<HotRestartOsSysCallsImpl>;
18

            
19
} // namespace Api
20
} // namespace Envoy