summaryrefslogtreecommitdiff
path: root/include/my_bitmap.h
diff options
context:
space:
mode:
authorunknown <serg@serg.mylan>2003-10-24 22:44:48 +0200
committerunknown <serg@serg.mylan>2003-10-24 22:44:48 +0200
commit4e5f086b59a07914c9484c10cc74788858a3cc0b (patch)
treef568d21474173997b961d12647e250178e7a7942 /include/my_bitmap.h
parent6b516a37abb1e0a9b1e8dfd65f274903ab1e27e0 (diff)
downloadmariadb-git-4e5f086b59a07914c9484c10cc74788858a3cc0b.tar.gz
fixes to Bitmap class
Diffstat (limited to 'include/my_bitmap.h')
-rw-r--r--include/my_bitmap.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/include/my_bitmap.h b/include/my_bitmap.h
index d3fcece290b..cff2295f45c 100644
--- a/include/my_bitmap.h
+++ b/include/my_bitmap.h
@@ -25,14 +25,13 @@ typedef struct st_bitmap
{
uchar *bitmap;
uint bitmap_size;
- my_bool thread_safe; /* set if several threads access the bitmap */
/*
mutex will be acquired for the duration of each bitmap operation if
- thread_safe flag is set. Otherwise, we optimize by not acquiring the
- mutex
+ thread_safe flag in bitmap_init was set. Otherwise, we optimize by not
+ acquiring the mutex
*/
#ifdef THREAD
- pthread_mutex_t mutex;
+ pthread_mutex_t *mutex;
#endif
} MY_BITMAP;