Maxim Dounin
January 09, 2020 06:48AM
Hello!

On Wed, Jan 08, 2020 at 06:08:59PM -0800, Robert Paprocki wrote:

> A curious point then, why ngx_atomic_fetch_add is used to
> advance the buffer position, if an atomic operation isn’t
> necessary since the buffer isn’t shared. Is it a style choice?

It is to make debug logging work in threads.

--
Maxim Dounin
http://mdounin.ru/
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

Dumping cyclic error_log memory

Robert Paprocki 86 January 03, 2020 11:02PM

Re: Dumping cyclic error_log memory

Datong Sun 10 January 08, 2020 07:52PM

Re: Dumping cyclic error_log memory

Robert Paprocki 7 January 08, 2020 09:10PM

Re: Dumping cyclic error_log memory

Maxim Dounin 27 January 09, 2020 06:48AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 90
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready