view src/core/ngx_rwlock.h @ 7280:76e7e20cda05

Core: fixed comment about ngx_current_msec after 81fae70d6cb8. The value is no longer guaranteed to be based on milliseconds elapsed since Epoch.
author Ruslan Ermilov <ru@nginx.com>
date Tue, 29 May 2018 16:15:19 +0300
parents d1816a2696de
children
line wrap: on
line source


/*
 * Copyright (C) Ruslan Ermilov
 * Copyright (C) Nginx, Inc.
 */


#ifndef _NGX_RWLOCK_H_INCLUDED_
#define _NGX_RWLOCK_H_INCLUDED_


#include <ngx_config.h>
#include <ngx_core.h>


void ngx_rwlock_wlock(ngx_atomic_t *lock);
void ngx_rwlock_rlock(ngx_atomic_t *lock);
void ngx_rwlock_unlock(ngx_atomic_t *lock);
void ngx_rwlock_downgrade(ngx_atomic_t *lock);


#endif /* _NGX_RWLOCK_H_INCLUDED_ */