Beingessner: Rust's Unsafe Pointer Types Need An Overhaul
Beingessner: Rust's Unsafe Pointer Types Need An Overhaul
Posted Mar 22, 2022 8:47 UTC (Tue) by metan (subscriber, #74107)In reply to: Beingessner: Rust's Unsafe Pointer Types Need An Overhaul by tialaramex
Parent article: Beingessner: Rust's Unsafe Pointer Types Need An Overhaul
Actually volatile must be used for any global variable modified from a signal handler. The most common pattern is to have volatile sig_atomic_t global flag set by the signal handler. I bet this is the most common use for volatile in userspace.
