Mercurial > hg > nginx-quic
comparison src/event/ngx_event_posted.h @ 563:9c2f3ed7a247 release-0.3.3
nginx-0.3.3-RELEASE import
*) Change: the "bl" and "af" parameters of the "listen" directive was
renamed to the "backlog" and "accept_filter".
*) Feature: the "rcvbuf" and "sndbuf" parameters of the "listen"
directive.
*) Change: the "$msec" log parameter does not require now the
additional the gettimeofday() system call.
*) Feature: the -t switch now tests the "listen" directives.
*) Bugfix: if the invalid address was specified in the "listen"
directive, then after the -HUP signal nginx left an open socket in
the CLOSED state.
*) Bugfix: the mime type may be incorrectly set to default value for
index file with variable in the name; the bug had appeared in 0.3.0.
*) Feature: the "timer_resolution" directive.
*) Feature: the millisecond "$upstream_response_time" log parameter.
*) Bugfix: a temporary file with client request body now is removed
just after the response header was transferred to a client.
*) Bugfix: OpenSSL 0.9.6 compatibility.
*) Bugfix: the SSL certificate and key file paths could not be relative.
*) Bugfix: the "ssl_prefer_server_ciphers" directive did not work in
the ngx_imap_ssl_module.
*) Bugfix: the "ssl_protocols" directive allowed to specify the single
protocol only.
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 19 Oct 2005 12:33:58 +0000 |
parents | a88a3e4e158f |
children | d620f497c50f |
comparison
equal
deleted
inserted
replaced
562:4b6108f69026 | 563:9c2f3ed7a247 |
---|---|
11 #include <ngx_config.h> | 11 #include <ngx_config.h> |
12 #include <ngx_core.h> | 12 #include <ngx_core.h> |
13 #include <ngx_event.h> | 13 #include <ngx_event.h> |
14 | 14 |
15 | 15 |
16 #define ngx_post_event(ev) \ | 16 #if (NGX_THREADS) |
17 if (ev->prev == NULL) { \ | 17 extern ngx_mutex_t *ngx_posted_events_mutex; |
18 ev->next = (ngx_event_t *) ngx_posted_events; \ | 18 #endif |
19 ev->prev = (ngx_event_t **) &ngx_posted_events; \ | 19 |
20 ngx_posted_events = ev; \ | 20 |
21 if (ev->next) { \ | 21 #define ngx_locked_post_event(ev, queue) \ |
22 ev->next->prev = &ev->next; \ | 22 \ |
23 } \ | 23 if (ev->prev == NULL) { \ |
24 ngx_log_debug1(NGX_LOG_DEBUG_CORE, ev->log, 0, \ | 24 ev->next = (ngx_event_t *) *queue; \ |
25 "post event %p", ev); \ | 25 ev->prev = (ngx_event_t **) queue; \ |
26 } else { \ | 26 *queue = ev; \ |
27 ngx_log_debug1(NGX_LOG_DEBUG_CORE, ev->log, 0, \ | 27 \ |
28 "update posted event %p", ev); \ | 28 if (ev->next) { \ |
29 } | 29 ev->next->prev = &ev->next; \ |
30 } \ | |
31 \ | |
32 ngx_log_debug1(NGX_LOG_DEBUG_CORE, ev->log, 0, "post event %p", ev); \ | |
33 \ | |
34 } else { \ | |
35 ngx_log_debug1(NGX_LOG_DEBUG_CORE, ev->log, 0, \ | |
36 "update posted event %p", ev); \ | |
37 } | |
38 | |
39 | |
40 #define ngx_post_event(ev, queue) \ | |
41 \ | |
42 ngx_mutex_lock(ngx_posted_events_mutex); \ | |
43 ngx_locked_post_event(ev, queue); \ | |
44 ngx_mutex_unlock(ngx_posted_events_mutex); | |
45 | |
30 | 46 |
31 #define ngx_delete_posted_event(ev) \ | 47 #define ngx_delete_posted_event(ev) \ |
32 *(ev->prev) = ev->next; \ | 48 \ |
33 if (ev->next) { \ | 49 *(ev->prev) = ev->next; \ |
34 ev->next->prev = ev->prev; \ | 50 \ |
35 } \ | 51 if (ev->next) { \ |
36 ev->prev = NULL; \ | 52 ev->next->prev = ev->prev; \ |
37 ngx_log_debug1(NGX_LOG_DEBUG_CORE, ev->log, 0, \ | 53 } \ |
38 "delete posted event %p", ev); | 54 \ |
55 ev->prev = NULL; \ | |
56 ngx_log_debug1(NGX_LOG_DEBUG_CORE, ev->log, 0, \ | |
57 "delete posted event %p", ev); | |
39 | 58 |
40 | 59 |
41 | 60 |
42 void ngx_event_process_posted(ngx_cycle_t *cycle); | 61 void ngx_event_process_posted(ngx_cycle_t *cycle, |
62 ngx_thread_volatile ngx_event_t **posted); | |
43 void ngx_wakeup_worker_thread(ngx_cycle_t *cycle); | 63 void ngx_wakeup_worker_thread(ngx_cycle_t *cycle); |
44 | 64 |
65 #if (NGX_THREADS) | |
66 ngx_int_t ngx_event_thread_process_posted(ngx_cycle_t *cycle); | |
67 #endif | |
68 | |
69 | |
70 extern ngx_thread_volatile ngx_event_t *ngx_posted_accept_events; | |
45 extern ngx_thread_volatile ngx_event_t *ngx_posted_events; | 71 extern ngx_thread_volatile ngx_event_t *ngx_posted_events; |
46 | 72 |
47 | 73 |
48 #if (NGX_THREADS) | |
49 ngx_int_t ngx_event_thread_process_posted(ngx_cycle_t *cycle); | |
50 | |
51 extern ngx_mutex_t *ngx_posted_events_mutex; | |
52 #endif | |
53 | |
54 | |
55 #endif /* _NGX_EVENT_POSTED_H_INCLUDED_ */ | 74 #endif /* _NGX_EVENT_POSTED_H_INCLUDED_ */ |