src/core/ngx_rwlock.h - nginx source code

Macros defined

Source code


  1. /*
  2. * Copyright (C) Ruslan Ermilov
  3. * Copyright (C) Nginx, Inc.
  4. */


  5. #ifndef _NGX_RWLOCK_H_INCLUDED_
  6. #define _NGX_RWLOCK_H_INCLUDED_


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


  9. void ngx_rwlock_wlock(ngx_atomic_t *lock);
  10. void ngx_rwlock_rlock(ngx_atomic_t *lock);
  11. void ngx_rwlock_unlock(ngx_atomic_t *lock);
  12. void ngx_rwlock_downgrade(ngx_atomic_t *lock);


  13. #endif /* _NGX_RWLOCK_H_INCLUDED_ */