testShutdownOutSideOfOwningThread() — netty Function Reference
Architecture documentation for the testShutdownOutSideOfOwningThread() function in ManualIoEventLoopTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD af56152a_5206_9882_68f7_6b942f0bdcb3["testShutdownOutSideOfOwningThread()"] 7f1091cc_a8b6_0293_92ad_d94222ae6482["ManualIoEventLoopTest"] af56152a_5206_9882_68f7_6b942f0bdcb3 -->|defined in| 7f1091cc_a8b6_0293_92ad_d94222ae6482 3bf16ebe_cf8d_923f_9559_397075f9b2a1["TestIoHandler()"] af56152a_5206_9882_68f7_6b942f0bdcb3 -->|calls| 3bf16ebe_cf8d_923f_9559_397075f9b2a1 style af56152a_5206_9882_68f7_6b942f0bdcb3 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport/src/test/java/io/netty/channel/ManualIoEventLoopTest.java lines 102–112
@Test
public void testShutdownOutSideOfOwningThread() throws Exception {
Semaphore semaphore = new Semaphore(0);
Thread ownerThread = new Thread();
ManualIoEventLoop eventLoop = new ManualIoEventLoop(ownerThread, executor ->
new TestIoHandler(semaphore));
eventLoop.shutdown();
assertTrue(eventLoop.isShuttingDown());
// we expect wakeup to be called!
assertEquals(1, semaphore.availablePermits());
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does testShutdownOutSideOfOwningThread() do?
testShutdownOutSideOfOwningThread() is a function in the netty codebase, defined in transport/src/test/java/io/netty/channel/ManualIoEventLoopTest.java.
Where is testShutdownOutSideOfOwningThread() defined?
testShutdownOutSideOfOwningThread() is defined in transport/src/test/java/io/netty/channel/ManualIoEventLoopTest.java at line 102.
What does testShutdownOutSideOfOwningThread() call?
testShutdownOutSideOfOwningThread() calls 1 function(s): TestIoHandler.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free