diff options
author | Max Romanov <max.romanov@nginx.com> | 2017-08-02 13:22:07 +0300 |
---|---|---|
committer | Max Romanov <max.romanov@nginx.com> | 2017-08-02 13:22:07 +0300 |
commit | f23f985899760fafd853e993d9023b1339f09533 (patch) | |
tree | b1896aa49683d809481351249352dbb18b59cd97 /src/nxt_runtime.h | |
parent | 021a84019f48c9027254f15c9b9db7ea12535dd0 (diff) | |
download | unit-f23f985899760fafd853e993d9023b1339f09533.tar.gz unit-f23f985899760fafd853e993d9023b1339f09533.tar.bz2 |
Runtime processes protected with mutex.
Diffstat (limited to 'src/nxt_runtime.h')
-rw-r--r-- | src/nxt_runtime.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/nxt_runtime.h b/src/nxt_runtime.h index 8ee8560b..7922c2ef 100644 --- a/src/nxt_runtime.h +++ b/src/nxt_runtime.h @@ -37,6 +37,7 @@ struct nxt_runtime_s { nxt_process_t *mprocess; size_t nprocesses; + nxt_thread_mutex_t processes_mutex; nxt_lvlhsh_t processes; /* of nxt_process_t */ nxt_port_t *port_by_type[NXT_PROCESS_MAX]; @@ -101,8 +102,6 @@ nxt_runtime_is_master(nxt_runtime_t *rt) nxt_process_t *nxt_runtime_process_new(nxt_runtime_t *rt); -void nxt_runtime_process_destroy(nxt_runtime_t *rt, nxt_process_t *process); - nxt_process_t *nxt_runtime_process_get(nxt_runtime_t *rt, nxt_pid_t pid); void nxt_runtime_process_add(nxt_runtime_t *rt, nxt_process_t *process); |