From 17f74130a93d5b5eb9fb33e453670e7247494104 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 9 Dec 2022 23:43:12 +0100 Subject: Matrix: continue from cache instead of initial sync everytime. Mainly improves pantalaimon sync speed --- plugins/utils/UniqueProcess.hpp | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 plugins/utils/UniqueProcess.hpp (limited to 'plugins/utils') diff --git a/plugins/utils/UniqueProcess.hpp b/plugins/utils/UniqueProcess.hpp new file mode 100644 index 0000000..a2145f9 --- /dev/null +++ b/plugins/utils/UniqueProcess.hpp @@ -0,0 +1,7 @@ +#pragma once + +namespace QuickMedia { + bool is_quickmedia_instance_already_running(const char *pid_file_dir, const char *plugin_name); + bool set_quickmedia_instance_unique(const char *pid_file_dir, const char *plugin_name); + void remove_quickmedia_instance_lock(const char *pid_file_dir, const char *plugin_name); +} \ No newline at end of file -- cgit v1.2.3