Java Code Examples for io.netty.util.internal.PlatformDependent#newMpscQueue()
The following examples show how to use
io.netty.util.internal.PlatformDependent#newMpscQueue() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: NioEventLoop.java From netty-4.1.22 with Apache License 2.0 | 4 votes |
@Override protected Queue<Runnable> newTaskQueue(int maxPendingTasks) { // This event loop never calls takeTask()这个事件循环从不调用takeTask() return maxPendingTasks == Integer.MAX_VALUE ? PlatformDependent.<Runnable>newMpscQueue() : PlatformDependent.<Runnable>newMpscQueue(maxPendingTasks); }
Example 2
Source File: KQueueEventLoop.java From netty-4.1.22 with Apache License 2.0 | 4 votes |
@Override protected Queue<Runnable> newTaskQueue(int maxPendingTasks) { // This event loop never calls takeTask() return maxPendingTasks == Integer.MAX_VALUE ? PlatformDependent.<Runnable>newMpscQueue() : PlatformDependent.<Runnable>newMpscQueue(maxPendingTasks); }
Example 3
Source File: AbstractEpollStreamChannel.java From netty-4.1.22 with Apache License 2.0 | 4 votes |
private void addToSpliceQueue0(SpliceInTask task) { if (spliceQueue == null) { spliceQueue = PlatformDependent.newMpscQueue(); } spliceQueue.add(task); }
Example 4
Source File: EpollEventLoop.java From netty-4.1.22 with Apache License 2.0 | 4 votes |
@Override protected Queue<Runnable> newTaskQueue(int maxPendingTasks) { // This event loop never calls takeTask() return maxPendingTasks == Integer.MAX_VALUE ? PlatformDependent.<Runnable>newMpscQueue() : PlatformDependent.<Runnable>newMpscQueue(maxPendingTasks); }
Example 5
Source File: ComputeEventLoop.java From cantor with Apache License 2.0 | 4 votes |
@Override protected Queue<Runnable> newTaskQueue(int maxPendingTasks) { // This event loop never calls takeTask() return PlatformDependent.newMpscQueue(maxPendingTasks); }
Example 6
Source File: MpScMessageExecutor.java From java-Kcp with Apache License 2.0 | 4 votes |
@Override public void start() { taskQueue = (BlockingQueue) PlatformDependent.newMpscQueue(Integer.MAX_VALUE); thread = new Thread(this,threadName); thread.start(); }
Example 7
Source File: NioEventLoop.java From netty4.0.27Learn with Apache License 2.0 | 4 votes |
@Override protected Queue<Runnable> newTaskQueue() { // This event loop never calls takeTask() return PlatformDependent.newMpscQueue(); }
Example 8
Source File: EpollEventLoop.java From netty4.0.27Learn with Apache License 2.0 | 4 votes |
@Override protected Queue<Runnable> newTaskQueue() { // This event loop never calls takeTask() return PlatformDependent.newMpscQueue(); }