diff options
author | paul <paul> | 2006-07-25 20:40:40 +0000 |
---|---|---|
committer | paul <paul> | 2006-07-25 20:40:40 +0000 |
commit | f4bd57184085ca11d8b36d8ca14330642d79f64d (patch) | |
tree | 382eeaefd643f5e5a870ffb7e18ae1a52c48fb98 /lib/workqueue.h | |
parent | efa016c4ea256b562c27aa43c6d839eb3e53d663 (diff) | |
download | quagga-f4bd57184085ca11d8b36d8ca14330642d79f64d.tar.bz2 quagga-f4bd57184085ca11d8b36d8ca14330642d79f64d.tar.xz |
[lib] Optimise thread_call by caching pointer to thread history in the thread
2006-07-25 Paul Jakma <paul.jakma@sun.com>
* thread.h: (struct thread) Add a cache pointer to the struct
cpu_thread_history, if it is known - saving hash lookup on
each thread_call.
* thread.c: (thread_call) Cache the pointer to the
cpu_thread_history, so that future thread_calls of same
thread can avoid the hash_lookup.
Diffstat (limited to 'lib/workqueue.h')
0 files changed, 0 insertions, 0 deletions