We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7735024 commit 21c02bdCopy full SHA for 21c02bd
src/backtrace/win32.rs
@@ -94,6 +94,9 @@ impl Frame {
94
#[repr(C, align(16))] // required by `CONTEXT`, is a FIXME in windows metadata right now
95
struct MyContext(CONTEXT);
96
97
+/// # Safety
98
+/// This function makes many calls to dbghelp, which must be called in a single-threaded fashion.
99
+/// Therefore, it is unsound to call this function concurrently without synchronization.
100
#[inline(always)]
101
pub unsafe fn trace(cb: &mut dyn FnMut(&super::Frame) -> bool) {
102
// Allocate necessary structures for doing the stack walk
0 commit comments