comparison src/os/win32/ngx_thread.c @ 4571:2942a827da09

Win32: improved ngx_mutex_init() stub (ticket #138). This allows to run nginx with "master_process off" under Windows.
author Maxim Dounin <mdounin@mdounin.ru>
date Mon, 02 Apr 2012 21:31:45 +0000
parents d620f497c50f
children 94ce52db3367
comparison
equal deleted inserted replaced
4570:b3d4e9c66e24 4571:2942a827da09
70 70
71 71
72 ngx_mutex_t * 72 ngx_mutex_t *
73 ngx_mutex_init(ngx_log_t *log, ngx_uint_t flags) 73 ngx_mutex_init(ngx_log_t *log, ngx_uint_t flags)
74 { 74 {
75 return (ngx_mutex_t *) 1; 75 ngx_mutex_t *m;
76
77 m = ngx_alloc(sizeof(ngx_mutex_t), log);
78 if (m == NULL) {
79 return NULL;
80 }
81
82 m->log = log;
83
84 /* STUB */
85
86 return m;
76 } 87 }
77 88
78 89
79 /* STUB */ 90 /* STUB */
80 91