diff options
| author | mlugg <mlugg@mlugg.co.uk> | 2025-09-19 13:35:12 +0100 |
|---|---|---|
| committer | mlugg <mlugg@mlugg.co.uk> | 2025-09-30 13:44:55 +0100 |
| commit | 099a95041054e456ebefbd75f6a4f9f6961002be (patch) | |
| tree | 6293805ebdf2664d5b5906e614297972a7c8da6f /lib/std/debug/Dwarf/expression.zig | |
| parent | 9c1821d3bfadc5eddd4dff271a4920c03ee0ffea (diff) | |
| download | zig-099a95041054e456ebefbd75f6a4f9f6961002be.tar.gz zig-099a95041054e456ebefbd75f6a4f9f6961002be.zip | |
std.debug.SelfInfo: thread safety
This has been a TODO for ages, but in the past it didn't really matter
because stack traces are typically printed to stderr for which a mutex
is held so in practice there was a mutex guarding usage of `SelfInfo`.
However, now that `SelfInfo` is also used for simply capturing traces,
thread safety is needed. Instead of just a single mutex, though, there
are a couple of different mutexes involved; this helps make critical
sections smaller, particularly when unwinding the stack as `unwindFrame`
doesn't typically need to hold any lock at all.
Diffstat (limited to 'lib/std/debug/Dwarf/expression.zig')
0 files changed, 0 insertions, 0 deletions
