diff options
Diffstat (limited to 'storage/innobase/include/sux_lock.h')
-rw-r--r-- | storage/innobase/include/sux_lock.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/storage/innobase/include/sux_lock.h b/storage/innobase/include/sux_lock.h index c09915cf6de..6d2ddadb9c3 100644 --- a/storage/innobase/include/sux_lock.h +++ b/storage/innobase/include/sux_lock.h @@ -98,6 +98,9 @@ public: ut_ad(recursive); return recursive == RECURSIVE_X || recursive == RECURSIVE_U; } + + /** @return the number of X locks being held (by any thread) */ + unsigned x_lock_count() const { return recursive & RECURSIVE_MAX; } #endif /** Acquire a recursive lock */ |