comparison src/core/ngx_core.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 7142b04337d6
children e38e9c50a40e
comparison
equal deleted inserted replaced
6732:57148b755320 6733:adc2414856b1
10 10
11 11
12 #include <ngx_config.h> 12 #include <ngx_config.h>
13 13
14 14
15 typedef struct ngx_module_s ngx_module_t; 15 typedef struct ngx_module_s ngx_module_t;
16 typedef struct ngx_conf_s ngx_conf_t; 16 typedef struct ngx_conf_s ngx_conf_t;
17 typedef struct ngx_cycle_s ngx_cycle_t; 17 typedef struct ngx_cycle_s ngx_cycle_t;
18 typedef struct ngx_pool_s ngx_pool_t; 18 typedef struct ngx_pool_s ngx_pool_t;
19 typedef struct ngx_chain_s ngx_chain_t; 19 typedef struct ngx_chain_s ngx_chain_t;
20 typedef struct ngx_log_s ngx_log_t; 20 typedef struct ngx_log_s ngx_log_t;
21 typedef struct ngx_open_file_s ngx_open_file_t; 21 typedef struct ngx_open_file_s ngx_open_file_t;
22 typedef struct ngx_command_s ngx_command_t; 22 typedef struct ngx_command_s ngx_command_t;
23 typedef struct ngx_file_s ngx_file_t; 23 typedef struct ngx_file_s ngx_file_t;
24 typedef struct ngx_event_s ngx_event_t; 24 typedef struct ngx_event_s ngx_event_t;
25 typedef struct ngx_event_aio_s ngx_event_aio_t; 25 typedef struct ngx_event_aio_s ngx_event_aio_t;
26 typedef struct ngx_connection_s ngx_connection_t; 26 typedef struct ngx_connection_s ngx_connection_t;
27
28 #if (NGX_THREADS)
29 typedef struct ngx_thread_task_s ngx_thread_task_t; 27 typedef struct ngx_thread_task_s ngx_thread_task_t;
30 #endif
31 28
32 typedef void (*ngx_event_handler_pt)(ngx_event_t *ev); 29 typedef void (*ngx_event_handler_pt)(ngx_event_t *ev);
33 typedef void (*ngx_connection_handler_pt)(ngx_connection_t *c); 30 typedef void (*ngx_connection_handler_pt)(ngx_connection_t *c);
34 31
35 32