Home / Function/ unguardedConsumer() — netty Function Reference

unguardedConsumer() — netty Function Reference

Architecture documentation for the unguardedConsumer() function in RecyclerBenchmark.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  171be599_1829_92d8_b922_2348e5ff6644["unguardedConsumer()"]
  f3ce3bf7_0aec_591c_d35b_cfe2adfbfa83["RecyclerBenchmark"]
  171be599_1829_92d8_b922_2348e5ff6644 -->|defined in| f3ce3bf7_0aec_591c_d35b_cfe2adfbfa83
  10d4a1a2_1e80_aba3_a914_06f2ae654751["unguardedRecycle()"]
  171be599_1829_92d8_b922_2348e5ff6644 -->|calls| 10d4a1a2_1e80_aba3_a914_06f2ae654751
  style 171be599_1829_92d8_b922_2348e5ff6644 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

microbench/src/main/java/io/netty/microbench/util/RecyclerBenchmark.java lines 175–188

    @Benchmark
    @Group("unguardedProducerConsumer")
    public void unguardedConsumer(ProducerConsumerState state, Control control, ConsumerStats stats) throws Exception {
        Queue<DummyObject> queue = state.queue;
        DummyObject object;
        do {
            object = queue.poll();
            if (object != null) {
                object.unguardedRecycle();
                return;
            }
            stats.emptyQ++;
        } while (!control.stopMeasurement);
    }

Domain

Subdomains

Frequently Asked Questions

What does unguardedConsumer() do?
unguardedConsumer() is a function in the netty codebase, defined in microbench/src/main/java/io/netty/microbench/util/RecyclerBenchmark.java.
Where is unguardedConsumer() defined?
unguardedConsumer() is defined in microbench/src/main/java/io/netty/microbench/util/RecyclerBenchmark.java at line 175.
What does unguardedConsumer() call?
unguardedConsumer() calls 1 function(s): unguardedRecycle.

Analyze Your Own Codebase

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

Try Supermodel Free