From 1566b6faa8534118c3566188181367cd0868468f Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Thu, 9 Nov 2023 23:19:53 +0100 Subject: Added partial matching and introduced threads --- examples/dte/lock.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 examples/dte/lock.h (limited to 'examples/dte/lock.h') diff --git a/examples/dte/lock.h b/examples/dte/lock.h new file mode 100644 index 0000000..9d2a90a --- /dev/null +++ b/examples/dte/lock.h @@ -0,0 +1,12 @@ +#ifndef LOCK_H +#define LOCK_H + +#include +#include +#include "util/macros.h" + +void init_file_locks_context(const char *fallback_dir, pid_t pid); +bool lock_file(const char *filename) WARN_UNUSED_RESULT; +void unlock_file(const char *filename); + +#endif -- cgit v1.2.3