You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been read core-code for nng, I notice that when we call nni_thr_init in nni_taskq_thread, it pass three parameters,just like this nni_thr_init(&tq->tq_threads[i].tqt_thread, nni_taskq_thread, &tq->tq_threads[i]);
I don't know why design code as this? If just pass the third parameter nni_taskq_thread object, we also can get the nni_thr object?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have been read core-code for nng, I notice that when we call
nni_thr_init
innni_taskq_thread
, it pass three parameters,just like thisnni_thr_init(&tq->tq_threads[i].tqt_thread, nni_taskq_thread, &tq->tq_threads[i]);
I don't know why design code as this? If just pass the third parameter
nni_taskq_thread
object, we also can get thenni_thr
object?Beta Was this translation helpful? Give feedback.
All reactions