summaryrefslogtreecommitdiff
path: root/sql/mdl.h
diff options
context:
space:
mode:
authorKonstantin Osipov <kostja@sun.com>2010-02-05 01:37:44 +0300
committerKonstantin Osipov <kostja@sun.com>2010-02-05 01:37:44 +0300
commita6f804228dfb17d1b3876555eb6209cb9d33becd (patch)
tree2f27e0a73a972458f02271adf1703a93b77d3d7d /sql/mdl.h
parente7b332ba83f7ecd5dbc518df5d5f4c84fc542552 (diff)
downloadmariadb-git-a6f804228dfb17d1b3876555eb6209cb9d33becd.tar.gz
A post-merge fix for next-mr -> next-4284 merge:
Make all mutexes and conditions of type mysql_mutex_t, mysql_cond_t, since it's now the expectation of THD::awake().
Diffstat (limited to 'sql/mdl.h')
-rw-r--r--sql/mdl.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/sql/mdl.h b/sql/mdl.h
index fca0d0cf336..05a0b44dc9b 100644
--- a/sql/mdl.h
+++ b/sql/mdl.h
@@ -520,10 +520,10 @@ public:
*/
void awake(mdl_signal_type signal)
{
- pthread_mutex_lock(&m_signal_lock);
+ mysql_mutex_lock(&m_signal_lock);
m_signal= signal;
- pthread_cond_signal(&m_signal_cond);
- pthread_mutex_unlock(&m_signal_lock);
+ mysql_cond_signal(&m_signal_cond);
+ mysql_mutex_unlock(&m_signal_lock);
}
void init(THD *thd_arg) { m_thd= thd_arg; }
@@ -636,8 +636,8 @@ private:
notification by adding a ticket corresponding to the request
to an appropriate queue of waiters).
*/
- pthread_mutex_t m_signal_lock;
- pthread_cond_t m_signal_cond;
+ mysql_mutex_t m_signal_lock;
+ mysql_cond_t m_signal_cond;
mdl_signal_type m_signal;
private:
@@ -675,9 +675,9 @@ private:
void wait_reset()
{
- pthread_mutex_lock(&m_signal_lock);
+ mysql_mutex_lock(&m_signal_lock);
m_signal= NO_WAKE_UP;
- pthread_mutex_unlock(&m_signal_lock);
+ mysql_mutex_unlock(&m_signal_lock);
}
mdl_signal_type wait();
@@ -686,9 +686,9 @@ private:
mdl_signal_type peek_signal()
{
mdl_signal_type result;
- pthread_mutex_lock(&m_signal_lock);
+ mysql_mutex_lock(&m_signal_lock);
result= m_signal;
- pthread_mutex_unlock(&m_signal_lock);
+ mysql_mutex_unlock(&m_signal_lock);
return result;
}