mirror of
https://github.com/MariaDB/server.git
synced 2025-02-28 16:23:17 +01:00
Fix the SRW_LOCK_DUMMY build with PLUGIN_PERFSCHEMA=NO
srw_lock_low: Declare the member functions public when wrapping rw_lock_t
This commit is contained in:
parent
20da7b222d
commit
59b2848af6
1 changed files with 1 additions and 0 deletions
|
@ -121,6 +121,7 @@ public:
|
|||
void wr_unlock() { ReleaseSRWLockExclusive(&lock); }
|
||||
# else
|
||||
rw_lock_t lock;
|
||||
public:
|
||||
void init() { my_rwlock_init(&lock, nullptr); }
|
||||
void destroy() { rwlock_destroy(&lock); }
|
||||
void rd_lock() { rw_rdlock(&lock); }
|
||||
|
|
Loading…
Add table
Reference in a new issue