comparison src/http/ngx_http_core_module.h @ 6733:adc2414856b1

Modules compatibility: compatibility with NGX_THREADS. With this change it is now possible to load modules compiled without the "--with-threads" configure option into nginx binary compiled with it, and vice versa (if a module does not use thread-specific functions), assuming both use the "--with-compat" option.
author Maxim Dounin <mdounin@mdounin.ru>
date Mon, 10 Oct 2016 18:44:17 +0300
parents 48bab8b83f4e
children e38e9c50a40e
comparison
equal deleted inserted replaced
6732:57148b755320 6733:adc2414856b1
13 #include <ngx_core.h> 13 #include <ngx_core.h>
14 #include <ngx_http.h> 14 #include <ngx_http.h>
15 15
16 #if (NGX_THREADS) 16 #if (NGX_THREADS)
17 #include <ngx_thread_pool.h> 17 #include <ngx_thread_pool.h>
18 #elif (NGX_COMPAT)
19 typedef struct ngx_thread_pool_s ngx_thread_pool_t;
18 #endif 20 #endif
19 21
20 22
21 #define NGX_HTTP_GZIP_PROXIED_OFF 0x0002 23 #define NGX_HTTP_GZIP_PROXIED_OFF 0x0002
22 #define NGX_HTTP_GZIP_PROXIED_EXPIRED 0x0004 24 #define NGX_HTTP_GZIP_PROXIED_EXPIRED 0x0004
407 #if (NGX_PCRE) 409 #if (NGX_PCRE)
408 ngx_array_t *gzip_disable; /* gzip_disable */ 410 ngx_array_t *gzip_disable; /* gzip_disable */
409 #endif 411 #endif
410 #endif 412 #endif
411 413
412 #if (NGX_THREADS) 414 #if (NGX_THREADS || NGX_COMPAT)
413 ngx_thread_pool_t *thread_pool; 415 ngx_thread_pool_t *thread_pool;
414 ngx_http_complex_value_t *thread_pool_value; 416 ngx_http_complex_value_t *thread_pool_value;
415 #endif 417 #endif
416 418
417 #if (NGX_HAVE_OPENAT) 419 #if (NGX_HAVE_OPENAT)