diff options
author | Marc Alff <marc.alff@sun.com> | 2010-01-06 22:42:07 -0700 |
---|---|---|
committer | Marc Alff <marc.alff@sun.com> | 2010-01-06 22:42:07 -0700 |
commit | 3d915225611a921fad03934e58bf281b48fc15b0 (patch) | |
tree | ea8cbc9d70015a17aad75df30e7d223476eaa4da /sql/sys_vars_shared.h | |
parent | 4b559b912f5a3aa02a226fdacddaa3b80a8ade42 (diff) | |
download | mariadb-git-3d915225611a921fad03934e58bf281b48fc15b0.tar.gz |
WL#2360 Performance schema
Part IV: sql instrumentation
Diffstat (limited to 'sql/sys_vars_shared.h')
-rw-r--r-- | sql/sys_vars_shared.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/sql/sys_vars_shared.h b/sql/sys_vars_shared.h index e996fdba52e..a8ef9034715 100644 --- a/sql/sys_vars_shared.h +++ b/sql/sys_vars_shared.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2002-2006 MySQL AB, 2009 Sun Microsystems, Inc. +/* Copyright (C) 2002-2006 MySQL AB, 2009-2010 Sun Microsystems, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -45,22 +45,22 @@ public: class PolyLock_mutex: public PolyLock { - pthread_mutex_t *mutex; + mysql_mutex_t *mutex; public: - PolyLock_mutex(pthread_mutex_t *arg): mutex(arg) {} - void rdlock() { pthread_mutex_lock(mutex); } - void wrlock() { pthread_mutex_lock(mutex); } - void unlock() { pthread_mutex_unlock(mutex); } + PolyLock_mutex(mysql_mutex_t *arg): mutex(arg) {} + void rdlock() { mysql_mutex_lock(mutex); } + void wrlock() { mysql_mutex_lock(mutex); } + void unlock() { mysql_mutex_unlock(mutex); } }; class PolyLock_rwlock: public PolyLock { - rw_lock_t *rwlock; + mysql_rwlock_t *rwlock; public: - PolyLock_rwlock(rw_lock_t *arg): rwlock(arg) {} - void rdlock() { rw_rdlock(rwlock); } - void wrlock() { rw_wrlock(rwlock); } - void unlock() { rw_unlock(rwlock); } + PolyLock_rwlock(mysql_rwlock_t *arg): rwlock(arg) {} + void rdlock() { mysql_rwlock_rdlock(rwlock); } + void wrlock() { mysql_rwlock_wrlock(rwlock); } + void unlock() { mysql_rwlock_unlock(rwlock); } }; class AutoWLock |