Mercurial > hg > nginx
comparison src/core/ngx_file.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 | 0c572ed91b36 |
comparison
equal
deleted
inserted
replaced
6732:57148b755320 | 6733:adc2414856b1 |
---|---|
21 off_t offset; | 21 off_t offset; |
22 off_t sys_offset; | 22 off_t sys_offset; |
23 | 23 |
24 ngx_log_t *log; | 24 ngx_log_t *log; |
25 | 25 |
26 #if (NGX_THREADS) | 26 #if (NGX_THREADS || NGX_COMPAT) |
27 ngx_int_t (*thread_handler)(ngx_thread_task_t *task, | 27 ngx_int_t (*thread_handler)(ngx_thread_task_t *task, |
28 ngx_file_t *file); | 28 ngx_file_t *file); |
29 void *thread_ctx; | 29 void *thread_ctx; |
30 ngx_thread_task_t *thread_task; | 30 ngx_thread_task_t *thread_task; |
31 #endif | 31 #endif |