Update thread namings.

Signed-off-by: Emmanuel Bigeon <emmanuel@bigeon.fr>
This commit is contained in:
2017-11-18 08:51:54 -05:00
parent d32ea6b4b0
commit 0ebcd7b210
3 changed files with 62 additions and 70 deletions

View File

@@ -64,7 +64,7 @@ public final class PipedConsoleInput
private final WritingRunnable writing;
/** Create a manager that will write and read through piped stream.
*
*
* @param outPrint the stream to write the prompting messages to
* @throws IOException if the piping failed for streams */
public PipedConsoleInput(final PrintStream outPrint) throws IOException {
@@ -73,7 +73,8 @@ public final class PipedConsoleInput
innerManager = new StreamConsoleInput(outPrint, in,
StandardCharsets.UTF_8);
writing = new WritingRunnable(commandInput, StandardCharsets.UTF_8);
final Thread th = new Thread(writing, "write"); //$NON-NLS-1$
final Thread th = new Thread(writing,
"GCLC console piped input stream"); //$NON-NLS-1$
th.start();
}

View File

@@ -79,7 +79,7 @@ public final class PipedConsoleOutput
outPrint = new PrintStream(out, true, UTF_8);
innerManager = new StreamConsoleOutput(outPrint);
reading = new ReadingRunnable(commandBuffOutput);
final Thread th = new Thread(reading, "read"); //$NON-NLS-1$
final Thread th = new Thread(reading, "GCLC console output forward"); //$NON-NLS-1$
th.setDaemon(true);
th.start();
}