Mercurial > hg > nginx
comparison auto/cc/conf @ 3366:b44a7159c5fb
atomic operations test-run
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 27 Nov 2009 22:00:39 +0000 |
parents | b57a4a704f3c |
children | 568a854383f9 |
comparison
equal
deleted
inserted
replaced
3365:d518c65ff0d4 | 3366:b44a7159c5fb |
---|---|
125 fi | 125 fi |
126 | 126 |
127 | 127 |
128 ngx_feature="gcc builtin atomic operations" | 128 ngx_feature="gcc builtin atomic operations" |
129 ngx_feature_name=NGX_HAVE_GCC_ATOMIC | 129 ngx_feature_name=NGX_HAVE_GCC_ATOMIC |
130 ngx_feature_run=no | 130 ngx_feature_run=yes |
131 ngx_feature_incs= | 131 ngx_feature_incs= |
132 ngx_feature_path= | 132 ngx_feature_path= |
133 ngx_feature_libs= | 133 ngx_feature_libs= |
134 ngx_feature_test="long n; | 134 ngx_feature_test="long n = 0; |
135 __sync_bool_compare_and_swap(&n, 0, 1); | 135 if (!__sync_bool_compare_and_swap(&n, 0, 1)) |
136 __sync_fetch_and_add(&n, 1);" | 136 return 1; |
137 if (__sync_fetch_and_add(&n, 1) != 1) | |
138 return 1; | |
139 if (n != 2) | |
140 return 1; | |
141 __sync_synchronize();" | |
137 . auto/feature | 142 . auto/feature |
138 | 143 |
139 | 144 |
140 ngx_feature="gcc variadic macros" | 145 ngx_feature="gcc variadic macros" |
141 ngx_feature_name="NGX_HAVE_GCC_VARIADIC_MACROS" | 146 ngx_feature_name="NGX_HAVE_GCC_VARIADIC_MACROS" |