summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_runtime.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/nxt_runtime.h16
1 files changed, 1 insertions, 15 deletions
diff --git a/src/nxt_runtime.h b/src/nxt_runtime.h
index d0546e63..c23e4bce 100644
--- a/src/nxt_runtime.h
+++ b/src/nxt_runtime.h
@@ -43,7 +43,7 @@ struct nxt_runtime_s {
uint32_t last_engine_id;
- uint32_t types; /* bitset of nxt_process_type_t */
+ nxt_process_type_t type;
nxt_timer_t timer;
@@ -83,20 +83,6 @@ nxt_int_t nxt_runtime_thread_pool_create(nxt_thread_t *thr, nxt_runtime_t *rt,
nxt_uint_t max_threads, nxt_nsec_t timeout);
-nxt_inline nxt_bool_t
-nxt_runtime_is_type(nxt_runtime_t *rt, nxt_process_type_t type)
-{
- return (rt->types & (1U << type)) != 0;
-}
-
-
-nxt_inline nxt_bool_t
-nxt_runtime_is_main(nxt_runtime_t *rt)
-{
- return nxt_runtime_is_type(rt, NXT_PROCESS_MAIN);
-}
-
-
nxt_process_t *nxt_runtime_process_new(nxt_runtime_t *rt);
nxt_process_t *nxt_runtime_process_get(nxt_runtime_t *rt, nxt_pid_t pid);