Commit 42d2766
Fix DaemonThreadFactory - reuse single Java thread factory
* Move defaultThreadFactory call to DaemonThreadFactory#initialize and store
resulting factory in @java_thread_factory
* In DaemonThreadFactory#newThread, use stored factory to generate new threads
instead of creating a new factory each time1 parent 1982b92 commit 42d2766
File tree
1 file changed
+2
-1
lines changed- lib/concurrent-ruby/concurrent/executor
1 file changed
+2
-1
lines changedLines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| 91 | + | |
91 | 92 | | |
92 | 93 | | |
93 | 94 | | |
94 | | - | |
| 95 | + | |
95 | 96 | | |
96 | 97 | | |
97 | 98 | | |
| |||
0 commit comments