give SimpleDecoder's thread a name.

PiperOrigin-RevId: 291401328
This commit is contained in:
olly 2020-01-24 18:50:08 +00:00 committed by Andrew Lewis
parent accbc5bba5
commit 3fc61de7f7

View File

@ -62,12 +62,13 @@ public abstract class SimpleDecoder<
for (int i = 0; i < availableOutputBufferCount; i++) { for (int i = 0; i < availableOutputBufferCount; i++) {
availableOutputBuffers[i] = createOutputBuffer(); availableOutputBuffers[i] = createOutputBuffer();
} }
decodeThread = new Thread() { decodeThread =
@Override new Thread("SimpleDecoder:Decode") {
public void run() { @Override
SimpleDecoder.this.run(); public void run() {
} SimpleDecoder.this.run();
}; }
};
decodeThread.start(); decodeThread.start();
} }