Commit d34bbb2
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 952b2ce commit d34bbb2
1 file changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2857 | 2857 | | |
2858 | 2858 | | |
2859 | 2859 | | |
| 2860 | + | |
2860 | 2861 | | |
2861 | 2862 | | |
2862 | | - | |
2863 | | - | |
| 2863 | + | |
| 2864 | + | |
| 2865 | + | |
| 2866 | + | |
| 2867 | + | |
2864 | 2868 | | |
2865 | 2869 | | |
2866 | 2870 | | |
| |||
0 commit comments