Introducing thread-safe nxt_random().

This commit is contained in:
Igor Sysoev
2017-07-10 21:07:12 +03:00
parent dc874cd22e
commit 3bccb7f358
9 changed files with 12 additions and 32 deletions

View File

@@ -188,6 +188,8 @@ struct nxt_thread_s {
* engine->fibers, its placement here eliminates 2 memory accesses.
*/
nxt_fiber_t *fiber;
nxt_random_t random;
};