Mercurial > hg > nginx
annotate src/os/win32/ngx_thread.c @ 527:7fa11e5c6e96 release-0.1.38
nginx-0.1.38-RELEASE import
*) Feature: the "limit_rate" directive is supported in in proxy and
FastCGI mode.
*) Feature: the "X-Accel-Limit-Rate" response header line is supported
in proxy and FastCGI mode.
*) Feature: the "break" directive.
*) Feature: the "log_not_found" directive.
*) Bugfix: the response status code was not changed when request was
redirected by the ""X-Accel-Redirect" header line.
*) Bugfix: the variables set by the "set" directive could not be used
in SSI.
*) Bugfix: the segmentation fault may occurred if the SSI page has more
than one remote subrequest.
*) Bugfix: nginx treated the backend response as invalid if the status
line in the header was transferred in two packets; the bug had
appeared in 0.1.29.
*) Feature: the "ssi_types" directive.
*) Feature: the "autoindex_exact_size" directive.
*) Bugfix: the ngx_http_autoindex_module did not support the long file
names in UTF-8.
*) Feature: the IMAP/POP3 proxy.
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 08 Jul 2005 14:34:20 +0000 |
parents | d4ea69372b94 |
children | 9c2f3ed7a247 |
rev | line source |
---|---|
461 | 1 |
2 /* | |
3 * Copyright (C) Igor Sysoev | |
4 */ | |
5 | |
6 | |
7 #include <ngx_config.h> | |
8 #include <ngx_core.h> | |
9 | |
10 | |
11 ngx_int_t ngx_threads_n; | |
12 | |
13 | |
14 static size_t stack_size; | |
15 | |
16 | |
17 ngx_err_t ngx_create_thread(ngx_tid_t *tid, void* (*func)(void *arg), void *arg, | |
18 ngx_log_t *log) | |
19 { | |
20 ngx_err_t err; | |
21 | |
22 *tid = CreateThread(NULL, stack_size, | |
23 (LPTHREAD_START_ROUTINE) func, arg, 0, NULL); | |
24 | |
25 if (*tid != NULL) { | |
26 return 0; | |
27 } | |
28 | |
29 err = ngx_errno; | |
30 ngx_log_error(NGX_LOG_ALERT, log, err, "CreateThread() failed"); | |
31 return err; | |
32 } | |
33 | |
34 | |
35 ngx_int_t ngx_init_threads(int n, size_t size, ngx_cycle_t *cycle) | |
36 { | |
37 stack_size = size; | |
38 | |
39 return NGX_OK; | |
40 } | |
41 | |
42 | |
43 ngx_err_t ngx_thread_key_create(ngx_tls_key_t *key) | |
44 { | |
45 *key = TlsAlloc(); | |
46 | |
47 if (*key == TLS_OUT_OF_INDEXES) { | |
48 return ngx_errno; | |
49 } | |
50 | |
51 return 0; | |
52 } | |
53 | |
54 | |
55 ngx_err_t ngx_thread_set_tls(ngx_tls_key_t *key, void *data) | |
56 { | |
57 if (TlsSetValue(*key, data) == 0) { | |
58 return ngx_errno; | |
59 } | |
60 | |
61 return 0; | |
62 } | |
63 | |
64 | |
65 ngx_mutex_t *ngx_mutex_init(ngx_log_t *log, ngx_uint_t flags) | |
66 { | |
67 return (ngx_mutex_t *) 1; | |
68 } | |
501 | 69 |
70 | |
71 /* STUB */ | |
72 | |
73 ngx_int_t | |
74 ngx_mutex_lock(ngx_mutex_t *m) { | |
75 return NGX_OK; | |
76 } | |
77 | |
78 | |
79 ngx_int_t | |
80 ngx_mutex_trylock(ngx_mutex_t *m) { | |
81 return NGX_OK; | |
82 } | |
83 | |
84 /**/ |