From 8900cc0dd980cb08a0af957a1d0dd849bf3c2ac6 Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Tue, 6 Nov 2007 11:58:32 +0000 Subject: No one can get access to buckets now without locking them. Also split up the trackerlogic.c-monster in functional sub-units. HEADS UP: this code is untested and not considered stable. --- ot_mutex.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'ot_mutex.h') diff --git a/ot_mutex.h b/ot_mutex.h index 8d91ab3..2d30c69 100644 --- a/ot_mutex.h +++ b/ot_mutex.h @@ -1,13 +1,16 @@ /* This software was written by Dirk Engling It is considered beerware. Prost. Skol. Cheers or whatever. */ -#ifndef __MUTEX_H__ -#define __MUTEX_H__ +#ifndef __OT_MUTEX_H__ +#define __OT_MUTEX_H__ void mutex_init( ); void mutex_deinit( ); -void mutex_bucket_lock( int bucket ); +ot_vector *mutex_bucket_lock( int bucket ); +ot_vector *mutex_bucket_lock_by_hash( ot_hash *hash ); + void mutex_bucket_unlock( int bucket ); +void mutex_bucket_unlock_by_hash( ot_hash *hash ); #endif -- cgit v1.2.3