mirror of
https://github.com/nginx/nginx.git
synced 2026-06-27 12:21:57 +00: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
1 changed files with 12 additions and 1 deletions
|
|
@ -72,7 +72,18 @@ ngx_thread_set_tls(ngx_tls_key_t *key, void *data)
|
|||
ngx_mutex_t *
|
||||
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…
Add table
Add a link
Reference in a new issue