summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/LspCpp/LibLsp/lsp/ParentProcessWatcher.h
blob: fa84e4109a523d0fba06ebc18a7fa79d4d5566c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#pragma once

#include "LibLsp/JsonRpc/MessageIssue.h"
#include <memory>

class ParentProcessWatcher
{
public:
	struct ParentProcessWatcherData;

	ParentProcessWatcher(lsp::Log& log, int pid, const std::function<void()>&& callback, uint32_t  poll_delay_secs = 10);

	~ParentProcessWatcher();

	std::shared_ptr<ParentProcessWatcherData>  d_ptr;
};