Commit cde686f
CA-270640: Avoid leaking waker threads
If we receive unexpected responses from emu-manager, the
handle_result loop exits immediately, potentially leaving
"requests" threads blocked and waiting to be woken up.
This can be avoided by waking up all the remaining threads
in a finalizer loop.
This does not solve the potential leak of the reader threads.
Signed-off-by: Marcello Seri <[email protected]>1 parent 6f4bbf7 commit cde686f
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1045 | 1045 | | |
1046 | 1046 | | |
1047 | 1047 | | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
1048 | 1053 | | |
1049 | 1054 | | |
1050 | 1055 | | |
| |||
0 commit comments