We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 118bb74 commit f51bb4eCopy full SHA for f51bb4e
library/std/src/sys/pal/teeos/thread.rs
@@ -56,7 +56,7 @@ impl Thread {
56
}
57
};
58
59
- let ret = libc::pthread_create(&mut native, &attr, thread_start, p as *mut _);
+ let ret = unsafe { libc::pthread_create(&mut native, &attr, thread_start, p as *mut _) };
60
// Note: if the thread creation fails and this assert fails, then p will
61
// be leaked. However, an alternative design could cause double-free
62
// which is clearly worse.
0 commit comments