nxt_thread.c (53:0b10a73d4993) nxt_thread.c (138:59fc46dd5e1d)
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_main.h>
8

--- 146 unchanged lines hidden (view full) ---

155 * Threads are never preempted by asynchronous signals, since
156 * the signals are processed synchronously by dedicated thread.
157 */
158 thr->time.signal = -1;
159
160 nxt_thread_time_update(thr);
161 }
162
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_main.h>
8

--- 146 unchanged lines hidden (view full) ---

155 * Threads are never preempted by asynchronous signals, since
156 * the signals are processed synchronously by dedicated thread.
157 */
158 thr->time.signal = -1;
159
160 nxt_thread_time_update(thr);
161 }
162
163 nxt_random_init(&thr->random);
164
163 return thr;
164}
165
166
167static void
168nxt_thread_time_cleanup(void *data)
169{
170 nxt_thread_t *thr;

--- 67 unchanged lines hidden ---
165 return thr;
166}
167
168
169static void
170nxt_thread_time_cleanup(void *data)
171{
172 nxt_thread_t *thr;

--- 67 unchanged lines hidden ---