diff options
author | Valentin Bartenev <vbart@nginx.com> | 2018-07-27 17:52:21 +0300 |
---|---|---|
committer | Valentin Bartenev <vbart@nginx.com> | 2018-07-27 17:52:21 +0300 |
commit | 4b67de4bbb7f7cc6e1337ab9b7479695fd068b74 (patch) | |
tree | ddbdcdd46074925b7ab428ff58fe26cc5a6ab257 /src/nxt_mp.c | |
parent | 12c890c1ca09bdd77fd653d247b13f1c22ea3f0a (diff) | |
download | unit-4b67de4bbb7f7cc6e1337ab9b7479695fd068b74.tar.gz unit-4b67de4bbb7f7cc6e1337ab9b7479695fd068b74.tar.bz2 |
Removed implicit call of nxt_thread() in nxt_thread_tid().
Explicit is better than implicit © The Zen of Python.
The nxt_thread_tid(NULL) call was used only twice in the code
and such behaviour was specific to nxt_thread_tid() function.
Diffstat (limited to 'src/nxt_mp.c')
-rw-r--r-- | src/nxt_mp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nxt_mp.c b/src/nxt_mp.c index a1ccd058..a0f19ac2 100644 --- a/src/nxt_mp.c +++ b/src/nxt_mp.c @@ -233,7 +233,7 @@ nxt_mp_thread_adopt(nxt_mp_t *mp) { #if (NXT_DEBUG) mp->pid = nxt_pid; - mp->tid = nxt_thread_tid(NULL); + mp->tid = nxt_thread_tid(nxt_thread()); #endif } |