We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d809de5 commit 644658eCopy full SHA for 644658e
iocore/eventsystem/P_UnixEThread.h
@@ -205,6 +205,10 @@ EThread::schedule_local(Event *e)
205
// The continuation that gets scheduled later is not always the
206
// client VC, it can be HttpCacheSM etc. so save the flags
207
e->continuation->control_flags.set_flags(get_cont_flags().get_flags());
208
+
209
+ // If you need to schedule an event from a different thread, use Ethread::schedule_imm/at/in/every functions
210
+ ink_release_assert(this == this_ethread());
211
212
EventQueueExternal.enqueue_local(e);
213
return e;
214
}
0 commit comments