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.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user