summaryrefslogtreecommitdiff
path: root/lib/event.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2022-12-11 10:39:12 -0500
committerDonald Sharp <sharpd@nvidia.com>2023-03-24 08:32:17 -0400
commit70c35c11f2af5f169db446ef02ac0dda7b2822fc (patch)
tree225495229380773b17c58f088e230cebf43b1b29 /lib/event.c
parent4f830a0799e74bd18af18e3ded5d6e16c79a7d56 (diff)
*: Convert thread_should_yield and thread_set_yield_time
Convert thread_should_yield and thread_set_yield_time to event_should_yield and event_set_yield_time Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'lib/event.c')
-rw-r--r--lib/event.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/event.c b/lib/event.c
index 8355b3cdd4..59f8928d1b 100644
--- a/lib/event.c
+++ b/lib/event.c
@@ -1910,7 +1910,7 @@ unsigned long thread_consumed_time(RUSAGE_T *now, RUSAGE_T *start,
for CPU time. On balance, wall clock time seems to make sense.
Plus it has the added benefit that gettimeofday should be faster
than calling getrusage. */
-int thread_should_yield(struct event *thread)
+int event_should_yield(struct event *thread)
{
int result;
frr_with_mutex (&thread->mtx) {
@@ -1920,7 +1920,7 @@ int thread_should_yield(struct event *thread)
return result;
}
-void thread_set_yield_time(struct event *thread, unsigned long yield_time)
+void event_set_yield_time(struct event *thread, unsigned long yield_time)
{
frr_with_mutex (&thread->mtx) {
thread->yield = yield_time;