summaryrefslogtreecommitdiff
path: root/mysys/my_bitmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'mysys/my_bitmap.c')
-rw-r--r--mysys/my_bitmap.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/mysys/my_bitmap.c b/mysys/my_bitmap.c
index 462c4ec4692..c0eb6f15548 100644
--- a/mysys/my_bitmap.c
+++ b/mysys/my_bitmap.c
@@ -28,8 +28,8 @@
* when both arguments are bitmaps, they must be of the same size
* bitmap_intersect() is an exception :)
(for for Bitmap::intersect(ulonglong map2buff))
-
- If THREAD is defined all bitmap operations except bitmap_init/bitmap_free
+
+ If THREAD is defined all bitmap operations except bitmap_init/bitmap_free
are thread-safe.
TODO:
@@ -40,6 +40,7 @@
#include <my_bitmap.h>
#include <m_string.h>
+static inline void bitmap_lock(MY_BITMAP *map)
{
#ifdef THREAD
if (map->mutex)
@@ -47,6 +48,7 @@
#endif
}
+static inline void bitmap_unlock(MY_BITMAP *map)
{
#ifdef THREAD
if (map->mutex)