Home / Class/ FastThreadLocalThread Class — netty Architecture

FastThreadLocalThread Class — netty Architecture

Architecture documentation for the FastThreadLocalThread class in FastThreadLocalCheckBenchmark.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  0cf18bb8_eb50_31d7_c094_2c0a287d81c8["FastThreadLocalThread"]
  5f78a57e_362c_33ee_8743_51f248a052d1["FastThreadLocalCheckBenchmark.java"]
  0cf18bb8_eb50_31d7_c094_2c0a287d81c8 -->|defined in| 5f78a57e_362c_33ee_8743_51f248a052d1
  f7239007_116f_baf0_e178_5c18d0baaa2c["FastThreadLocalThread()"]
  0cf18bb8_eb50_31d7_c094_2c0a287d81c8 -->|method| f7239007_116f_baf0_e178_5c18d0baaa2c
  7ef6d655_01a1_776b_b76a_80d166b6d4b4["getId()"]
  0cf18bb8_eb50_31d7_c094_2c0a287d81c8 -->|method| 7ef6d655_01a1_776b_b76a_80d166b6d4b4
  fb846528_251b_6622_6b01_d49e3744608e["run()"]
  0cf18bb8_eb50_31d7_c094_2c0a287d81c8 -->|method| fb846528_251b_6622_6b01_d49e3744608e

Relationship Graph

Source Code

microbench/src/main/java/io/netty/microbench/concurrent/FastThreadLocalCheckBenchmark.java lines 69–92

        class FastThreadLocalThread extends Thread {
            private final long id;

            FastThreadLocalThread(long id) {
                this.id = id;
            }

            @Override
            public long getId() {
                return id;
            }

            @Override
            public void run() {
                io.netty.util.concurrent.FastThreadLocalThread.runWithFastThreadLocal(() -> {
                    try {
                        eventLoopsRegistered.countDown();
                        eventLoopControl.await();
                    } catch (InterruptedException e) {
                        // ignore
                    }
                });
            }
        }

Frequently Asked Questions

What is the FastThreadLocalThread class?
FastThreadLocalThread is a class in the netty codebase, defined in microbench/src/main/java/io/netty/microbench/concurrent/FastThreadLocalCheckBenchmark.java.
Where is FastThreadLocalThread defined?
FastThreadLocalThread is defined in microbench/src/main/java/io/netty/microbench/concurrent/FastThreadLocalCheckBenchmark.java at line 69.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free