Its needed as you user could call for example Channel.write(…) from the 
application thread which may be different then the EventLoop.

> On 4 Jan 2017, at 10:59, [email protected] wrote:
> 
> when using EventLoop, why do we need to check  if we are in event loop ?  
> isn't  the  calling thread is the worker thread dedicated for that channel 
> and that event loop , whoever it will be ? 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Netty discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/netty/0d4d0714-1aa1-4f97-843c-45690581dd61%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/netty/0d4d0714-1aa1-4f97-843c-45690581dd61%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
You received this message because you are subscribed to the Google Groups 
"Netty discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/netty/AFA7FC85-AE71-4591-A877-24818C06B418%40googlemail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to