summaryrefslogtreecommitdiff
path: root/ot_mutex.c
diff options
context:
space:
mode:
Diffstat (limited to 'ot_mutex.c')
-rw-r--r--ot_mutex.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/ot_mutex.c b/ot_mutex.c
index 925eb27..2052ffa 100644
--- a/ot_mutex.c
+++ b/ot_mutex.c
@@ -18,6 +18,7 @@
18/* Opentracker */ 18/* Opentracker */
19#include "trackerlogic.h" 19#include "trackerlogic.h"
20#include "ot_mutex.h" 20#include "ot_mutex.h"
21#include "ot_stats.h"
21 22
22/* #define MTX_DBG( STRING ) fprintf( stderr, STRING ) */ 23/* #define MTX_DBG( STRING ) fprintf( stderr, STRING ) */
23#define MTX_DBG( STRING ) 24#define MTX_DBG( STRING )
@@ -47,8 +48,10 @@ static int bucket_check( int bucket ) {
47 48
48 /* See, if bucket is already locked */ 49 /* See, if bucket is already locked */
49 for( i=0; i<bucket_locklist_count; ++i ) 50 for( i=0; i<bucket_locklist_count; ++i )
50 if( bucket_locklist[ i ] == bucket ) 51 if( bucket_locklist[ i ] == bucket ) {
52 stats_issue_event( EVENT_BUCKET_LOCKED, 0, 0 );
51 return -1; 53 return -1;
54 }
52 55
53 return 0; 56 return 0;
54} 57}