Is there a way to mark a struct field as volatile? Or a standard set of functions for making a volatile write or read? Or am I thinking about this the wrong way? I want to write to a mutable global field in a way that is seen across threads.
You can use Atomic operations for threading. See vapi/glib-2.0.vapi · 0.56.18 · GNOME / vala · GitLab
1 Like