diff options
author | Konstantin Osipov <kostja@sun.com> | 2010-08-11 01:12:01 +0400 |
---|---|---|
committer | Konstantin Osipov <kostja@sun.com> | 2010-08-11 01:12:01 +0400 |
commit | 65d118b1a4cb3cb4d75226b9280ee80b0d644f70 (patch) | |
tree | 963c21bfca01bc89ae96c0574759e4e82383c83f /include/mysql | |
parent | 07a4e49a7f476f7fed3683e525931305b707cce3 (diff) | |
download | mariadb-git-65d118b1a4cb3cb4d75226b9280ee80b0d644f70.tar.gz |
A pre-requisite patch for the fix for Bug#52044.
Implement a few simple asserts in my_rwlock_t locks.
Diffstat (limited to 'include/mysql')
-rw-r--r-- | include/mysql/psi/mysql_thread.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/mysql/psi/mysql_thread.h b/include/mysql/psi/mysql_thread.h index d133f2655fb..60b4f5d6ef4 100644 --- a/include/mysql/psi/mysql_thread.h +++ b/include/mysql/psi/mysql_thread.h @@ -215,6 +215,14 @@ typedef struct st_mysql_cond mysql_cond_t; #define mysql_mutex_assert_not_owner(M) \ safe_mutex_assert_not_owner(&(M)->m_mutex) +/** Wrappers for instrumented prlock objects. */ + +#define mysql_prlock_assert_write_owner(M) \ + rw_pr_lock_assert_write_owner(&(M)->m_prlock) + +#define mysql_prlock_assert_not_write_owner(M) \ + rw_pr_lock_assert_not_write_owner(&(M)->m_prlock) + /** @def mysql_mutex_init(K, M, A) Instrumented mutex_init. |