wakeup() — netty Function Reference
Architecture documentation for the wakeup() function in SingleThreadEventExecutor.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD a1d3a8d1_9238_e4b8_bc99_db8bd82af78f["wakeup()"] c9189467_acbc_07ea_3a8c_fecfe22ec122["SingleThreadEventExecutor"] a1d3a8d1_9238_e4b8_bc99_db8bd82af78f -->|defined in| c9189467_acbc_07ea_3a8c_fecfe22ec122 3883639c_b779_4c47_6f43_da56209b65a2["shutdown0()"] 3883639c_b779_4c47_6f43_da56209b65a2 -->|calls| a1d3a8d1_9238_e4b8_bc99_db8bd82af78f a4b61d3b_50c5_e24e_858c_83456faa0c45["trySuspend()"] a4b61d3b_50c5_e24e_858c_83456faa0c45 -->|calls| a1d3a8d1_9238_e4b8_bc99_db8bd82af78f ced7700b_627f_0ab1_ff34_9e3824dfeea8["execute()"] ced7700b_627f_0ab1_ff34_9e3824dfeea8 -->|calls| a1d3a8d1_9238_e4b8_bc99_db8bd82af78f style a1d3a8d1_9238_e4b8_bc99_db8bd82af78f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
common/src/main/java/io/netty/util/concurrent/SingleThreadEventExecutor.java lines 704–710
protected void wakeup(boolean inEventLoop) {
if (!inEventLoop) {
// Use offer as we actually only need this to unblock the thread and if offer fails we do not care as there
// is already something in the queue.
taskQueue.offer(WAKEUP_TASK);
}
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does wakeup() do?
wakeup() is a function in the netty codebase, defined in common/src/main/java/io/netty/util/concurrent/SingleThreadEventExecutor.java.
Where is wakeup() defined?
wakeup() is defined in common/src/main/java/io/netty/util/concurrent/SingleThreadEventExecutor.java at line 704.
What calls wakeup()?
wakeup() is called by 3 function(s): execute, shutdown0, trySuspend.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free