diff options
author | dec05eba <dec05eba@protonmail.com> | 2022-12-09 23:43:12 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2022-12-09 23:43:12 +0100 |
commit | 17f74130a93d5b5eb9fb33e453670e7247494104 (patch) | |
tree | 37571bbb0bdb4e5dd31e57bd5dc710f124515d06 /plugins/utils | |
parent | 49e8081794b50a2b05d9d3b78860e34659ade3fc (diff) |
Matrix: continue from cache instead of initial sync everytime. Mainly improves pantalaimon sync speed
Diffstat (limited to 'plugins/utils')
-rw-r--r-- | plugins/utils/UniqueProcess.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
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 |