Adjustments based on review. See #1805
This commit is contained in:
parent
1f988889c2
commit
df1606a8ee
4 changed files with 12 additions and 8 deletions
|
|
@ -173,7 +173,7 @@ case class MonitorableThreadFactory(name: String,
|
|||
def newThread(pool: ForkJoinPool): ForkJoinWorkerThread = {
|
||||
val t = wire(ForkJoinPool.defaultForkJoinWorkerThreadFactory.newThread(pool))
|
||||
// Name of the threads for the ForkJoinPool are not customizable. Change it here.
|
||||
if (t.getName.startsWith("ForkJoinPool-")) t.setName(name + "-" + t.getName.substring("ForkJoinPool-".length))
|
||||
t.setName(name + "-" + counter.incrementAndGet())
|
||||
t
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue