Commit 7daf667
committed
Automatically dispose the context on JVM shutdown
And make the ThreadService's threads into daemon threads.
The danger is that the such threads won't complete pending work. But
with the JVM shutdown hook now attempting to dispose the context at
that point, the ExecutorService will have a chance to shutdown cleanly.1 parent 50daafb commit 7daf667
File tree
2 files changed
+11
-1
lines changed- src/main/java/org/scijava
- thread
2 files changed
+11
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
290 | 290 | | |
291 | 291 | | |
292 | 292 | | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
293 | 296 | | |
294 | 297 | | |
295 | 298 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
176 | | - | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
177 | 184 | | |
178 | 185 | | |
179 | 186 | | |
| |||
0 commit comments