From e44e2fe070484e06d384a31ef2699c3a2d5d474e Mon Sep 17 00:00:00 2001 From: RaindropsSys Date: Thu, 13 Jun 2024 15:46:03 +0200 Subject: GitHub migration --- updater/sql/mac/src/threading.h | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 updater/sql/mac/src/threading.h (limited to 'updater/sql/mac/src/threading.h') diff --git a/updater/sql/mac/src/threading.h b/updater/sql/mac/src/threading.h new file mode 100755 index 0000000..7c7139b --- /dev/null +++ b/updater/sql/mac/src/threading.h @@ -0,0 +1,10 @@ +#ifndef NODE_SQLITE3_SRC_THREADING_H +#define NODE_SQLITE3_SRC_THREADING_H + +#define NODE_SQLITE3_MUTEX_t uv_mutex_t mutex; +#define NODE_SQLITE3_MUTEX_INIT uv_mutex_init(&mutex); +#define NODE_SQLITE3_MUTEX_LOCK(m) uv_mutex_lock(m); +#define NODE_SQLITE3_MUTEX_UNLOCK(m) uv_mutex_unlock(m); +#define NODE_SQLITE3_MUTEX_DESTROY uv_mutex_destroy(&mutex); + +#endif // NODE_SQLITE3_SRC_THREADING_H -- cgit