Commit 9eaebb7
committed
darwin: do not set NULL device in darwin_reload_device
We need to maintain the invariant that `device` is never an invalid
pointer because another thread might be concurrently accessing it. We
want that thread to error from an outdated `device` rather than crash
on a NULL pointer.1 parent 80a7d8e commit 9eaebb7
1 file changed
+5
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2540 | 2540 | | |
2541 | 2541 | | |
2542 | 2542 | | |
| 2543 | + | |
2543 | 2544 | | |
2544 | 2545 | | |
2545 | | - | |
2546 | | - | |
2547 | | - | |
| 2546 | + | |
| 2547 | + | |
2548 | 2548 | | |
2549 | 2549 | | |
| 2550 | + | |
| 2551 | + | |
2550 | 2552 | | |
2551 | 2553 | | |
2552 | 2554 | | |
| |||
0 commit comments