2002-12-23 14:29:22 +08:00
|
|
|
#ifndef _NGX_PROCESS_H_INCLUDED_
|
|
|
|
#define _NGX_PROCESS_H_INCLUDED_
|
|
|
|
|
|
|
|
|
2004-03-04 15:04:55 +08:00
|
|
|
typedef DWORD ngx_pid_t;
|
|
|
|
|
|
|
|
#define ngx_getpid GetCurrentProcessId
|
|
|
|
#define ngx_log_pid ngx_pid
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
char *path;
|
|
|
|
char *name;
|
|
|
|
char *const *argv;
|
|
|
|
char *const *envp;
|
|
|
|
} ngx_exec_ctx_t;
|
|
|
|
|
|
|
|
|
|
|
|
#define NGX_PROCESS_SINGLE 0
|
|
|
|
#define NGX_PROCESS_MASTER 1
|
|
|
|
#define NGX_PROCESS_WORKER 2
|
|
|
|
|
|
|
|
|
2004-03-05 00:34:23 +08:00
|
|
|
ngx_pid_t ngx_execute(ngx_cycle_t *cycle, ngx_exec_ctx_t *ctx);
|
2004-03-04 15:04:55 +08:00
|
|
|
|
2004-07-02 13:47:00 +08:00
|
|
|
#define ngx_sched_yield() Sleep(0)
|
2004-06-30 23:30:41 +08:00
|
|
|
|
|
|
|
|
2004-03-04 15:04:55 +08:00
|
|
|
|
|
|
|
extern ngx_pid_t ngx_pid;
|
2002-12-23 14:29:22 +08:00
|
|
|
|
|
|
|
|
|
|
|
#endif /* _NGX_PROCESS_H_INCLUDED_ */
|