mirror of
https://github.com/nginx/nginx.git
synced 2025-06-12 21:52:41 +08:00
Win32: improved ngx_mutex_init() stub (ticket #138).
This allows to run nginx with "master_process off" under Windows.
This commit is contained in:
parent
9063bc8713
commit
7744472c8e
@ -72,7 +72,18 @@ ngx_thread_set_tls(ngx_tls_key_t *key, void *data)
|
|||||||
ngx_mutex_t *
|
ngx_mutex_t *
|
||||||
ngx_mutex_init(ngx_log_t *log, ngx_uint_t flags)
|
ngx_mutex_init(ngx_log_t *log, ngx_uint_t flags)
|
||||||
{
|
{
|
||||||
return (ngx_mutex_t *) 1;
|
ngx_mutex_t *m;
|
||||||
|
|
||||||
|
m = ngx_alloc(sizeof(ngx_mutex_t), log);
|
||||||
|
if (m == NULL) {
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
m->log = log;
|
||||||
|
|
||||||
|
/* STUB */
|
||||||
|
|
||||||
|
return m;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user