Skip to content

Commit

Permalink
Update for release 3.3.10.
Browse files Browse the repository at this point in the history
mikeb01 committed Mar 6, 2018

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 1d12be6 commit 457384a
Showing 3 changed files with 9 additions and 5 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -15,9 +15,13 @@ A High Performance Inter-Thread Messaging Library

## Changelog

### 3.3.10

- Fix race condition in BatchEventProcessor between run() and halt().

### 3.3.9

- Changle SleepingWaitStrategy to use a parkNanos(100).
- Change SleepingWaitStrategy to use a parkNanos(100).

### 3.3.8

2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -24,7 +24,7 @@ apply plugin: 'idea'
defaultTasks 'build'

group = 'com.lmax'
version = new Version(major: 3, minor: 3, revision: 9)
version = new Version(major: 3, minor: 3, revision: 10)

ext {
fullName = 'Disruptor Framework'
6 changes: 3 additions & 3 deletions src/test/java/com/lmax/disruptor/BatchEventProcessorTest.java
Original file line number Diff line number Diff line change
@@ -205,7 +205,7 @@ public Object get(long sequence)
};

final LatchLifeCycleHandler h1 = new LatchLifeCycleHandler();
final BatchEventProcessor p1 = new BatchEventProcessor<>(dp, barrier, h1);
final BatchEventProcessor p1 = new BatchEventProcessor<Object>(dp, barrier, h1);

Thread t1 = new Thread(p1);
p1.halt();
@@ -217,7 +217,7 @@ public Object get(long sequence)
for (int i = 0; i < 1000; i++)
{
final LatchLifeCycleHandler h2 = new LatchLifeCycleHandler();
final BatchEventProcessor p2 = new BatchEventProcessor<>(dp, barrier, h2);
final BatchEventProcessor p2 = new BatchEventProcessor<Object>(dp, barrier, h2);
Thread t2 = new Thread(p2);
t2.start();
p2.halt();
@@ -229,7 +229,7 @@ public Object get(long sequence)
for (int i = 0; i < 1000; i++)
{
final LatchLifeCycleHandler h2 = new LatchLifeCycleHandler();
final BatchEventProcessor p2 = new BatchEventProcessor<>(dp, barrier, h2);
final BatchEventProcessor p2 = new BatchEventProcessor<Object>(dp, barrier, h2);
Thread t2 = new Thread(p2);
t2.start();
Thread.yield();

0 comments on commit 457384a

Please sign in to comment.