mirror of
https://github.com/nginx/nginx.git
synced 2024-12-18 21:23:36 -06:00
Added memory barrier semantics to ngx_rwlock_unlock().
This commit is contained in:
parent
8310d81dc7
commit
3f26c20756
@ -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…
Reference in New Issue
Block a user