summaryrefslogtreecommitdiff
path: root/ot_mutex.h
diff options
context:
space:
mode:
authorerdgeist <>2007-11-06 11:58:32 +0000
committererdgeist <>2007-11-06 11:58:32 +0000
commit8900cc0dd980cb08a0af957a1d0dd849bf3c2ac6 (patch)
tree70aeed1dbaceea343e6ebd000d46df025bae21fc /ot_mutex.h
parent5749f1d8fe80cbb84d66a265bcf9bafe159985ab (diff)
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.
Diffstat (limited to 'ot_mutex.h')
-rw-r--r--ot_mutex.h9
1 files changed, 6 insertions, 3 deletions
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 @@
1/* This software was written by Dirk Engling <erdgeist@erdgeist.org> 1/* This software was written by Dirk Engling <erdgeist@erdgeist.org>
2 It is considered beerware. Prost. Skol. Cheers or whatever. */ 2 It is considered beerware. Prost. Skol. Cheers or whatever. */
3 3
4#ifndef __MUTEX_H__ 4#ifndef __OT_MUTEX_H__
5#define __MUTEX_H__ 5#define __OT_MUTEX_H__
6 6
7void mutex_init( ); 7void mutex_init( );
8void mutex_deinit( ); 8void mutex_deinit( );
9 9
10void mutex_bucket_lock( int bucket ); 10ot_vector *mutex_bucket_lock( int bucket );
11ot_vector *mutex_bucket_lock_by_hash( ot_hash *hash );
12
11void mutex_bucket_unlock( int bucket ); 13void mutex_bucket_unlock( int bucket );
14void mutex_bucket_unlock_by_hash( ot_hash *hash );
12 15
13#endif 16#endif