Welcome! Log In Create A New Profile

Advanced

[nginx] Core: guard against spinlock usage without atomic ops.

Ruslan Ermilov
April 07, 2015 07:28AM
details: http://hg.nginx.org/nginx/rev/f737e406aa68
branches:
changeset: 6072:f737e406aa68
user: Ruslan Ermilov <ru@nginx.com>
date: Thu Mar 26 14:15:06 2015 +0300
description:
Core: guard against spinlock usage without atomic ops.

The new thread pools code uses spinlocks.

diffstat:

src/core/ngx_spinlock.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 7bdd34cd2711 -r f737e406aa68 src/core/ngx_spinlock.c
--- a/src/core/ngx_spinlock.c Tue Apr 07 01:32:08 2015 +0300
+++ b/src/core/ngx_spinlock.c Thu Mar 26 14:15:06 2015 +0300
@@ -42,7 +42,7 @@ ngx_spinlock(ngx_atomic_t *lock, ngx_ato

#else

-#if (NGX_OLD_THREADS)
+#if (NGX_THREADS)

#error ngx_spinlock() or ngx_atomic_cmp_set() are not defined !


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

[nginx] Core: guard against spinlock usage without atomic ops.

Ruslan Ermilov 513 April 07, 2015 07:28AM



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

Online Users

Guests: 298
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready