aboutsummaryrefslogtreecommitdiff
path: root/updater/sql/win/src/threading.h
diff options
context:
space:
mode:
authorRaindropsSys <raindrops@equestria.dev>2024-06-13 15:46:03 +0200
committerRaindropsSys <raindrops@equestria.dev>2024-06-13 15:46:03 +0200
commite44e2fe070484e06d384a31ef2699c3a2d5d474e (patch)
tree2d5eb5d1b01646270d18cf1f2d94519966d6e7de /updater/sql/win/src/threading.h
downloadfaunerie-e44e2fe070484e06d384a31ef2699c3a2d5d474e.tar.gz
faunerie-e44e2fe070484e06d384a31ef2699c3a2d5d474e.tar.bz2
faunerie-e44e2fe070484e06d384a31ef2699c3a2d5d474e.zip
GitHub migration
Diffstat (limited to 'updater/sql/win/src/threading.h')
-rwxr-xr-xupdater/sql/win/src/threading.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/updater/sql/win/src/threading.h b/updater/sql/win/src/threading.h
new file mode 100755
index 0000000..7c7139b
--- /dev/null
+++ b/updater/sql/win/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