Commit 6362dfeb by olly Committed by Oliver Woodman

Replace LinkedBlockingDeque with our own linked list

This will allow us to maintain a reference to the middle
of the queue, which is necessary to efficiently support
decoupling the read position from the start of the buffer.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=158839336
parent f3e9166a
......@@ -91,6 +91,13 @@ public class DefaultTrackOutputTest extends TestCase {
inputBuffer = null;
}
public void testDisableReleasesAllocations() {
writeTestData();
assertAllocationCount(10);
trackOutput.disable();
assertAllocationCount(0);
}
public void testReadWithoutWrite() {
assertNoSamplesToRead(null);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment