diff options
author | erdgeist <> | 2007-11-06 11:58:32 +0000 |
---|---|---|
committer | erdgeist <> | 2007-11-06 11:58:32 +0000 |
commit | 8900cc0dd980cb08a0af957a1d0dd849bf3c2ac6 (patch) | |
tree | 70aeed1dbaceea343e6ebd000d46df025bae21fc /ot_mutex.h | |
parent | 5749f1d8fe80cbb84d66a265bcf9bafe159985ab (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.h | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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 | ||
7 | void mutex_init( ); | 7 | void mutex_init( ); |
8 | void mutex_deinit( ); | 8 | void mutex_deinit( ); |
9 | 9 | ||
10 | void mutex_bucket_lock( int bucket ); | 10 | ot_vector *mutex_bucket_lock( int bucket ); |
11 | ot_vector *mutex_bucket_lock_by_hash( ot_hash *hash ); | ||
12 | |||
11 | void mutex_bucket_unlock( int bucket ); | 13 | void mutex_bucket_unlock( int bucket ); |
14 | void mutex_bucket_unlock_by_hash( ot_hash *hash ); | ||
12 | 15 | ||
13 | #endif | 16 | #endif |