mirror of
https://github.com/nginx/nginx.git
synced 2026-10-22 20:11:17 +00:00
Added memory barrier semantics to ngx_rwlock_unlock().
This commit is contained in:
parent
8310d81dc7
commit
3f26c20756
1 changed files with 1 additions and 1 deletions
|
|
@ -94,7 +94,7 @@ ngx_rwlock_unlock(ngx_atomic_t *lock)
|
|||
readers = *lock;
|
||||
|
||||
if (readers == NGX_RWLOCK_WLOCK) {
|
||||
*lock = 0;
|
||||
(void) ngx_atomic_cmp_set(lock, NGX_RWLOCK_WLOCK, 0);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue