From 9e2acfdf6a4a168ba449b8ee4a3b7c1261c34b2e Mon Sep 17 00:00:00 2001 From: George Hahn Date: Tue, 29 Sep 2020 17:54:55 -0600 Subject: [PATCH] Let Dedicated EThreads use `EThread::schedule` `EThread::schedule_local` allows calls from `Dedicated` `EThreads` by scheduling events on the `ET_CALL` pool. This change brings the same behavior to the `EThread::schedule` function. --- iocore/eventsystem/P_UnixEThread.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/iocore/eventsystem/P_UnixEThread.h b/iocore/eventsystem/P_UnixEThread.h index 520ffdf9015..3d34208ea8c 100644 --- a/iocore/eventsystem/P_UnixEThread.h +++ b/iocore/eventsystem/P_UnixEThread.h @@ -79,7 +79,10 @@ TS_INLINE Event * EThread::schedule(Event *e) { e->ethread = this; - ink_assert(tt == REGULAR); + if (tt != REGULAR) { + ink_assert(tt == DEDICATED); + return eventProcessor.schedule(e, ET_CALL); + } if (e->continuation->mutex) { e->mutex = e->continuation->mutex; } else {