comparison src/core/ngx_rwlock.h @ 6101:682d8222c6b1

Core: read/write locks.
author Ruslan Ermilov <ru@nginx.com>
date Sat, 21 Mar 2015 14:05:08 +0300
parents
children d1816a2696de
comparison
equal deleted inserted replaced
6100:c44459611d91 6101:682d8222c6b1
1
2 /*
3 * Copyright (C) Ruslan Ermilov
4 * Copyright (C) Nginx, Inc.
5 */
6
7
8 #ifndef _NGX_RWLOCK_H_INCLUDED_
9 #define _NGX_RWLOCK_H_INCLUDED_
10
11
12 #include <ngx_config.h>
13 #include <ngx_core.h>
14
15
16 void ngx_rwlock_wlock(ngx_atomic_t *lock);
17 void ngx_rwlock_rlock(ngx_atomic_t *lock);
18 void ngx_rwlock_unlock(ngx_atomic_t *lock);
19
20
21 #endif /* _NGX_RWLOCK_H_INCLUDED_ */