diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2022-07-21 08:26:43 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2022-07-21 08:30:50 -0400 |
| commit | 2783a6921c8fd3917caa539df82e0d9f2a23eb0c (patch) | |
| tree | d66407b5a832fe546455929c48511154d7a98edc /ldpd/accept.c | |
| parent | fa935aa7e8d46e4e5ff717f68523261903bb68b7 (diff) | |
ldpd: Convert thread_cancel to THREAD_OFF
Just convert all uses of thread_cancel to THREAD_OFF
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'ldpd/accept.c')
| -rw-r--r-- | ldpd/accept.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ldpd/accept.c b/ldpd/accept.c index 2999a35c06..1a04c563c1 100644 --- a/ldpd/accept.c +++ b/ldpd/accept.c @@ -72,7 +72,7 @@ accept_del(int fd) LIST_FOREACH(av, &accept_queue.queue, entry) if (av->fd == fd) { log_debug("%s: %d removed from queue", __func__, fd); - thread_cancel(&av->ev); + THREAD_OFF(av->ev); LIST_REMOVE(av, entry); free(av); return; @@ -92,7 +92,7 @@ accept_unpause(void) { if (accept_queue.evt != NULL) { log_debug(__func__); - thread_cancel(&accept_queue.evt); + THREAD_OFF(accept_queue.evt); accept_arm(); } } @@ -111,7 +111,7 @@ accept_unarm(void) { struct accept_ev *av; LIST_FOREACH(av, &accept_queue.queue, entry) - thread_cancel(&av->ev); + THREAD_OFF(av->ev); } static void accept_cb(struct thread *thread) |
