Mercurial > hg > nginx-quic
view src/core/ngx_rwlock.h @ 8563:d6e191a583cc quic
HTTP/3: bulk parse functions.
Previously HTTP/3 streams were parsed by one character. Now all parse functions
receive buffers. This should optimize parsing time and CPU load.
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Thu, 08 Jul 2021 21:52:47 +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_ */