From ad541c67761b8aa6da1566802c347cac4018d0c2 Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Mon, 2 Nov 2026 20:50:24 +0100 Subject: Move the build sources into src/ --- src/ot_mutex.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/ot_mutex.h (limited to 'src/ot_mutex.h') diff --git a/src/ot_mutex.h b/src/ot_mutex.h new file mode 100644 index 0000000..d7ded92 --- /dev/null +++ b/src/ot_mutex.h @@ -0,0 +1,21 @@ +/* This software was written by Dirk Engling + It is considered beerware. Prost. Skol. Cheers or whatever. */ + +#ifndef OT_MUTEX_H__ +#define OT_MUTEX_H__ + +#include +#include "trackerlogic.h" + +void mutex_init(void); +void mutex_deinit(void); + +ot_vector *mutex_bucket_lock(int bucket); +ot_vector *mutex_bucket_lock_by_hash(ot_hash const hash); + +void mutex_bucket_unlock(int bucket, int delta_torrentcount); +void mutex_bucket_unlock_by_hash(ot_hash const hash, int delta_torrentcount); + +size_t mutex_get_torrent_count(void); + +#endif -- cgit v1.3