From 59ff76bd6696432650bc81f4d904854fcbc139cd Mon Sep 17 00:00:00 2001 From: Norman Maurer Date: Wed, 7 Mar 2012 17:55:37 +0100 Subject: [PATCH] add javadocs --- .../io/netty/channel/socket/nio/AbstractNioWorker.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/transport/src/main/java/io/netty/channel/socket/nio/AbstractNioWorker.java b/transport/src/main/java/io/netty/channel/socket/nio/AbstractNioWorker.java index ba4f028988..af779c8b20 100644 --- a/transport/src/main/java/io/netty/channel/socket/nio/AbstractNioWorker.java +++ b/transport/src/main/java/io/netty/channel/socket/nio/AbstractNioWorker.java @@ -290,6 +290,13 @@ abstract class AbstractNioWorker implements Worker { executeInIoThread(task, false); } + /** + * Execute the {@link Runnable} in a IO-Thread + * + * @param task the {@link Runnable} to execute + * @param alwaysAsync true if the {@link Runnable} should be executed in an async + * fashion even if the current Thread == IO Thread + */ public void executeInIoThread(Runnable task, boolean alwaysAsync) { if (!alwaysAsync && Thread.currentThread() == thread) { task.run();