Skip to content

Commit 457384a

Browse files
committed
Update for release 3.3.10.
1 parent 1d12be6 commit 457384a

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,13 @@ A High Performance Inter-Thread Messaging Library
1515

1616
## Changelog
1717

18+
### 3.3.10
19+
20+
- Fix race condition in BatchEventProcessor between run() and halt().
21+
1822
### 3.3.9
1923

20-
- Changle SleepingWaitStrategy to use a parkNanos(100).
24+
- Change SleepingWaitStrategy to use a parkNanos(100).
2125

2226
### 3.3.8
2327

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ apply plugin: 'idea'
2424
defaultTasks 'build'
2525

2626
group = 'com.lmax'
27-
version = new Version(major: 3, minor: 3, revision: 9)
27+
version = new Version(major: 3, minor: 3, revision: 10)
2828

2929
ext {
3030
fullName = 'Disruptor Framework'

src/test/java/com/lmax/disruptor/BatchEventProcessorTest.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ public Object get(long sequence)
205205
};
206206

207207
final LatchLifeCycleHandler h1 = new LatchLifeCycleHandler();
208-
final BatchEventProcessor p1 = new BatchEventProcessor<>(dp, barrier, h1);
208+
final BatchEventProcessor p1 = new BatchEventProcessor<Object>(dp, barrier, h1);
209209

210210
Thread t1 = new Thread(p1);
211211
p1.halt();
@@ -217,7 +217,7 @@ public Object get(long sequence)
217217
for (int i = 0; i < 1000; i++)
218218
{
219219
final LatchLifeCycleHandler h2 = new LatchLifeCycleHandler();
220-
final BatchEventProcessor p2 = new BatchEventProcessor<>(dp, barrier, h2);
220+
final BatchEventProcessor p2 = new BatchEventProcessor<Object>(dp, barrier, h2);
221221
Thread t2 = new Thread(p2);
222222
t2.start();
223223
p2.halt();
@@ -229,7 +229,7 @@ public Object get(long sequence)
229229
for (int i = 0; i < 1000; i++)
230230
{
231231
final LatchLifeCycleHandler h2 = new LatchLifeCycleHandler();
232-
final BatchEventProcessor p2 = new BatchEventProcessor<>(dp, barrier, h2);
232+
final BatchEventProcessor p2 = new BatchEventProcessor<Object>(dp, barrier, h2);
233233
Thread t2 = new Thread(p2);
234234
t2.start();
235235
Thread.yield();

0 commit comments

Comments
 (0)