mirror of
https://github.com/MariaDB/server.git
synced 2026-04-20 23:35:32 +02:00
Commit on behalf of Dmitry Lenev.
Merge his patch for Bug#52044 into 5.5, and apply review comments.
This commit is contained in:
commit
29c4873ad5
27 changed files with 1265 additions and 367 deletions
|
|
@ -127,7 +127,7 @@ int my_rw_wrlock(my_rw_lock_t *rwp)
|
|||
pthread_mutex_lock(&rwp->lock);
|
||||
rwp->waiters++; /* another writer queued */
|
||||
|
||||
my_rw_lock_assert_not_owner(rwp);
|
||||
my_rw_lock_assert_not_write_owner(rwp);
|
||||
|
||||
while (rwp->state)
|
||||
pthread_cond_wait(&rwp->writers, &rwp->lock);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue