summaryrefslogtreecommitdiffstats
path: root/ospfclient/ospf_apiclient.h
diff options
context:
space:
mode:
authorajs <ajs>2005-04-16 17:11:24 +0000
committerajs <ajs>2005-04-16 17:11:24 +0000
commit14f61a300cf2d98243dad501988393a03d66d6b9 (patch)
tree320a36bbf833fdc56737c6c0bf1ce08051dd3878 /ospfclient/ospf_apiclient.h
parent687b1a0f8a4b19d2e720ea8d5478ae1191ff52e5 (diff)
downloadquagga-14f61a300cf2d98243dad501988393a03d66d6b9.tar.bz2
quagga-14f61a300cf2d98243dad501988393a03d66d6b9.tar.xz
2005-04-16 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
* configure.ac: Added AC_ARG_ENABLE(time-check). By default, warning messages will now be printed for threads or commands that take longer than 5 seconds, but this configure argument can be used to disable the checks or change the threshold. * thread.h (thread_consumed_time): Declare new function to calculate elapsed microseconds. * thread.c (thread_consumed_time): Must be global not static so we can call it from lib/vty.c:vty_command. (thread_should_yield): Surround with `#if 0' to make clear that this function is not currently being used anywhere. (thread_call): If CONSUMED_TIME_CHECK is defined, print a CPU HOG warning message if the thread takes more than CONSUMED_TIME_CHECK microseconds. * vty.c (vty_command): If CONSUMED_TIME_CHECK is defined, print a CPU HOG warning message if the command takes more than CONSUMED_TIME_CHECK microseconds.
Diffstat (limited to 'ospfclient/ospf_apiclient.h')
0 files changed, 0 insertions, 0 deletions