SpinExecutorService() — netty Function Reference
Architecture documentation for the SpinExecutorService() function in BurstCostExecutorsBenchmark.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 85ceb04d_6d16_20b0_4aaf_1a8d046a2bea["SpinExecutorService()"] e1d20ecf_b9ac_4de1_4575_dd9260dd6753["SpinExecutorService"] 85ceb04d_6d16_20b0_4aaf_1a8d046a2bea -->|defined in| e1d20ecf_b9ac_4de1_4575_dd9260dd6753 30fce65c_e43b_4fc1_f613_eceff016b47f["setup()"] 30fce65c_e43b_4fc1_f613_eceff016b47f -->|calls| 85ceb04d_6d16_20b0_4aaf_1a8d046a2bea style 85ceb04d_6d16_20b0_4aaf_1a8d046a2bea fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
microbench/src/main/java/io/netty/microbench/concurrent/BurstCostExecutorsBenchmark.java lines 70–85
SpinExecutorService(int maxTasks) {
tasks = PlatformDependent.newFixedMpscQueue(maxTasks);
executorThread = new Thread(new Runnable() {
@Override
public void run() {
final Queue<Runnable> tasks = SpinExecutorService.this.tasks;
Runnable task;
while ((task = tasks.poll()) != POISON_PILL) {
if (task != null) {
task.run();
}
}
}
});
executorThread.start();
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does SpinExecutorService() do?
SpinExecutorService() is a function in the netty codebase, defined in microbench/src/main/java/io/netty/microbench/concurrent/BurstCostExecutorsBenchmark.java.
Where is SpinExecutorService() defined?
SpinExecutorService() is defined in microbench/src/main/java/io/netty/microbench/concurrent/BurstCostExecutorsBenchmark.java at line 70.
What calls SpinExecutorService()?
SpinExecutorService() is called by 1 function(s): setup.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free