Changeset 4571:2942a827da09 in nginx


Ignore:
Timestamp:
04/02/12 21:31:45 (8 years ago)
Author:
Maxim Dounin <mdounin@…>
Branch:
default
Phase:
public
Convert:
svn:c3fe7df1-7212-e011-8a91-001109144009/trunk@4572
Message:

Win32: improved ngx_mutex_init() stub (ticket #138).

This allows to run nginx with "master_process off" under Windows.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/os/win32/ngx_thread.c

    r4412 r4571  
    7373ngx_mutex_init(ngx_log_t *log, ngx_uint_t flags)
    7474{
    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;
    7687}
    7788
Note: See TracChangeset for help on using the changeset viewer.