Mercurial > hg > nginx
comparison src/event/ngx_event_pipe.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 | fc72784b1f52 |
children |
comparison
equal
deleted
inserted
replaced
6732:57148b755320 | 6733:adc2414856b1 |
---|---|
45 void *input_ctx; | 45 void *input_ctx; |
46 | 46 |
47 ngx_event_pipe_output_filter_pt output_filter; | 47 ngx_event_pipe_output_filter_pt output_filter; |
48 void *output_ctx; | 48 void *output_ctx; |
49 | 49 |
50 #if (NGX_THREADS) | 50 #if (NGX_THREADS || NGX_COMPAT) |
51 ngx_int_t (*thread_handler)(ngx_thread_task_t *task, | 51 ngx_int_t (*thread_handler)(ngx_thread_task_t *task, |
52 ngx_file_t *file); | 52 ngx_file_t *file); |
53 void *thread_ctx; | 53 void *thread_ctx; |
54 ngx_thread_task_t *thread_task; | 54 ngx_thread_task_t *thread_task; |
55 #endif | 55 #endif |