summaryrefslogtreecommitdiff
path: root/sql/sql_class.h
diff options
context:
space:
mode:
authorAlexander Nozdrin <alik@sun.com>2009-12-17 23:02:52 +0300
committerAlexander Nozdrin <alik@sun.com>2009-12-17 23:02:52 +0300
commit6e5c7b80bd178ebd4cab0ca03549186de6f9fbc2 (patch)
tree4a2290cb7f9ba65d264395cea1348ad6251496fb /sql/sql_class.h
parent0e3a80e0a851822112226e5e792320389aa0f2ae (diff)
parent4e8d1c6bf30abfd45a993b058ff2a33d4671b73d (diff)
downloadmariadb-git-6e5c7b80bd178ebd4cab0ca03549186de6f9fbc2.tar.gz
Manual merge from mysql-next-mr.
Conflicts: - mysys/charset.c - mysys/my_thr_init.c
Diffstat (limited to 'sql/sql_class.h')
-rw-r--r--sql/sql_class.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/sql/sql_class.h b/sql/sql_class.h
index d946b9610fa..d3e3f2a48b6 100644
--- a/sql/sql_class.h
+++ b/sql/sql_class.h
@@ -1876,21 +1876,21 @@ public:
enter_cond(); this mutex is then released by exit_cond().
Usage must be: lock mutex; enter_cond(); your code; exit_cond().
*/
- inline const char* enter_cond(pthread_cond_t *cond, pthread_mutex_t* mutex,
- const char* msg)
+ inline const char* enter_cond(mysql_cond_t *cond, mysql_mutex_t* mutex,
+ const char* msg)
{
const char* old_msg = proc_info;
- safe_mutex_assert_owner(mutex);
+ mysql_mutex_assert_owner(mutex);
mysys_var->current_mutex = mutex;
mysys_var->current_cond = cond;
proc_info = msg;
return old_msg;
}
- inline const char* enter_cond(mysql_cond_t *cond, mysql_mutex_t *mutex,
+ inline const char* enter_cond(pthread_cond_t *cond, pthread_mutex_t *mutex,
const char *msg)
{
/* TO BE REMOVED: temporary helper, to help with merges */
- return enter_cond(&cond->m_cond, &mutex->m_mutex, msg);
+ return enter_cond((mysql_cond_t*) cond, (mysql_mutex_t*) mutex, msg);
}
inline void exit_cond(const char* old_msg)
{
@@ -1900,12 +1900,12 @@ public:
locked (if that would not be the case, you'll get a deadlock if someone
does a THD::awake() on you).
*/
- pthread_mutex_unlock(mysys_var->current_mutex);
- pthread_mutex_lock(&mysys_var->mutex);
+ mysql_mutex_unlock(mysys_var->current_mutex);
+ mysql_mutex_lock(&mysys_var->mutex);
mysys_var->current_mutex = 0;
mysys_var->current_cond = 0;
proc_info = old_msg;
- pthread_mutex_unlock(&mysys_var->mutex);
+ mysql_mutex_unlock(&mysys_var->mutex);
return;
}
inline time_t query_start() { query_start_used=1; return start_time; }