Commit 6afe2c7
committed
inspector: handle spurious wakeups in InspectorIo startup
The constructor waited on thread_start_condition_ without a
predicate, so a spurious wakeup could let it return before the IO
thread assigned request_queue_, leading to a null dereference in
Start(). Loop until request_queue_ is set.
Signed-off-by: Aaron Lichtman <alichtman@meta.com>1 parent 7680075 commit 6afe2c7
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
268 | 268 | | |
269 | 269 | | |
270 | 270 | | |
271 | | - | |
| 271 | + | |
| 272 | + | |
272 | 273 | | |
273 | 274 | | |
274 | 275 | | |
| |||
0 commit comments