diff options
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 |
