summaryrefslogtreecommitdiff
path: root/ot_mutex.h
diff options
context:
space:
mode:
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