LspCpp/include/LibLsp/lsp/ParentProcessWatcher.h
raw| 1 | #pragma once |
| 2 | |
| 3 | #include "LibLsp/JsonRpc/MessageIssue.h" |
| 4 | #include <memory> |
| 5 | #include <cstdint> |
| 6 | |
| 7 | class ParentProcessWatcher |
| 8 | { |
| 9 | public: |
| 10 | struct ParentProcessWatcherData; |
| 11 | |
| 12 | ParentProcessWatcher(lsp::Log& log, int pid, std::function<void()> const&& callback, uint32_t poll_delay_secs = 10); |
| 13 | |
| 14 | ~ParentProcessWatcher(); |
| 15 | |
| 16 | std::shared_ptr<ParentProcessWatcherData> d_ptr; |
| 17 | }; |