Hello everyone,
I am interested in employing atomic operations to update certain values in a multithreaded application (using atomic_set_<type>).
I've been reading the specs for machine/atomic.h, and it appears that all of the functions act on unsigned integer datatypes.
Can I use atomic_set_64 to update the value of a double simply by casting the value to unsigned int? I assume it does strict byte duplication?
Thanks.
I am interested in employing atomic operations to update certain values in a multithreaded application (using atomic_set_<type>).
I've been reading the specs for machine/atomic.h, and it appears that all of the functions act on unsigned integer datatypes.
Can I use atomic_set_64 to update the value of a double simply by casting the value to unsigned int? I assume it does strict byte duplication?
Thanks.