summaryrefslogtreecommitdiff
path: root/lib/thread.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2016-11-10 13:58:40 -0500
committerDonald Sharp <sharpd@cumulusnetworks.com>2017-01-17 18:40:33 -0500
commitb3f5645df3548246fda33853d10ba830e034226a (patch)
treec8956f7ca9bb0471ed1b65cbfc669f24b4cdda19 /lib/thread.h
parentcbea873754384c2184bb1ce6909256a4f22c3ca7 (diff)
lib: Slight Optimization of thread handling.
This commit does these things: 1) Make thread_add_unuse own the setting of THREAD_UNUSED. 2) Move thread->hist finding to to thread_get. We are storing the thread->hist even when the thread is on the unused. This means that we check to see if the funcname or func have changed and we get new history. Else we've probably just retrieved the last unused which has the same func/funcanme. This is a common practice to do THREAD_OFF/THREAD_ON in quick succession. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com.
Diffstat (limited to 'lib/thread.h')
0 files changed, 0 insertions, 0 deletions