Commit c40d7ce
committed
refactor: inline shm cleanup callback into atexit registration
CleanupParentShmRegions was only referenced as the std::atexit callback
inside RegisterParentShmRegion. Inline it as a capture-less lambda so the
teardown logic lives next to the registration and there's one fewer
top-level helper in the anonymous namespace.
No behavior change.1 parent 39096f6 commit c40d7ce
1 file changed
Lines changed: 7 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | 46 | | |
57 | 47 | | |
58 | 48 | | |
| |||
61 | 51 | | |
62 | 52 | | |
63 | 53 | | |
64 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
65 | 61 | | |
66 | 62 | | |
67 | 63 | | |
| |||
0 commit comments