summaryrefslogtreecommitdiff
path: root/lib/frr_pthread.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2022-12-11 07:51:16 -0500
committerDonald Sharp <sharpd@nvidia.com>2023-03-24 08:32:17 -0400
commitde2754be3a2658363828eeb3a83579ad3bad0f99 (patch)
tree425608f8acab16eb4914148f8262db241dd82edf /lib/frr_pthread.c
parent2ccccdf5d0b5912afab9d5aad184013efc30fb48 (diff)
*: Convert thread_fetch and thread_call to event_fetch and event_call
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'lib/frr_pthread.c')
-rw-r--r--lib/frr_pthread.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/frr_pthread.c b/lib/frr_pthread.c
index e7bbae0c59..eb4102cb82 100644
--- a/lib/frr_pthread.c
+++ b/lib/frr_pthread.c
@@ -292,8 +292,8 @@ static void *fpt_run(void *arg)
struct event task;
while (atomic_load_explicit(&fpt->running, memory_order_relaxed)) {
pthread_testcancel();
- if (thread_fetch(fpt->master, &task)) {
- thread_call(&task);
+ if (event_fetch(fpt->master, &task)) {
+ event_call(&task);
}
}