comparison src/http/ngx_http_cache.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 ca709bca4b77
children 1a917932db96
comparison
equal deleted inserted replaced
6732:57148b755320 6733:adc2414856b1
91 ngx_buf_t *buf; 91 ngx_buf_t *buf;
92 92
93 ngx_http_file_cache_t *file_cache; 93 ngx_http_file_cache_t *file_cache;
94 ngx_http_file_cache_node_t *node; 94 ngx_http_file_cache_node_t *node;
95 95
96 #if (NGX_THREADS) 96 #if (NGX_THREADS || NGX_COMPAT)
97 ngx_thread_task_t *thread_task; 97 ngx_thread_task_t *thread_task;
98 #endif 98 #endif
99 99
100 ngx_msec_t lock_timeout; 100 ngx_msec_t lock_timeout;
101 ngx_msec_t lock_age; 101 ngx_msec_t lock_age;