Skip to content

Commit 11942d3

Browse files
committed
add clarification
1 parent 27a9270 commit 11942d3

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

core/src/main/java/io/netty/loom/EventLoopScheduler.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,9 @@ public boolean execute(Thread.VirtualThreadTask task) {
221221
}
222222
var currentThread = Thread.currentThread();
223223
if (currentThread != eventLoopThread) {
224+
// currentThread == carrierThread iff
225+
// - event loop start
226+
// - Thread::yield within this scheduler
224227
if (currentThread != carrierThread) {
225228
// this is checking for "local" submissions
226229
if (currentThreadSchedulerContext().scheduler() != sharedRef) {

0 commit comments

Comments
 (0)