Skip to content
This repository has been archived by the owner on Dec 23, 2023. It is now read-only.

Update disruptor to sleep 1ms and avoid busy waiting. #1605

Merged
merged 1 commit into from
Nov 21, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ private static DisruptorEventQueue create() {
DISRUPTOR_BUFFER_SIZE,
new DaemonThreadFactory("OpenCensus.Disruptor"),
ProducerType.MULTI,
new SleepingWaitStrategy());
new SleepingWaitStrategy(0, 1000 * 1000));
disruptor.handleEventsWith(new DisruptorEventHandler[] {DisruptorEventHandler.INSTANCE});
disruptor.start();
final RingBuffer<DisruptorEvent> ringBuffer = disruptor.getRingBuffer();
Expand Down