summaryrefslogtreecommitdiff
path: root/ot_mutex.h
diff options
context:
space:
mode:
Diffstat (limited to 'ot_mutex.h')
-rw-r--r--ot_mutex.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/ot_mutex.h b/ot_mutex.h
index 7038332..ba5684d 100644
--- a/ot_mutex.h
+++ b/ot_mutex.h
@@ -14,8 +14,10 @@ void mutex_deinit( );
14ot_vector *mutex_bucket_lock( int bucket ); 14ot_vector *mutex_bucket_lock( int bucket );
15ot_vector *mutex_bucket_lock_by_hash( ot_hash *hash ); 15ot_vector *mutex_bucket_lock_by_hash( ot_hash *hash );
16 16
17void mutex_bucket_unlock( int bucket ); 17void mutex_bucket_unlock( int bucket, int delta_torrentcount );
18void mutex_bucket_unlock_by_hash( ot_hash *hash ); 18void mutex_bucket_unlock_by_hash( ot_hash *hash, int delta_torrentcount );
19
20size_t mutex_get_torrent_count();
19 21
20typedef enum { 22typedef enum {
21 TASK_STATS_CONNS = 0x0001, 23 TASK_STATS_CONNS = 0x0001,