On Fri, 28 Oct 2016 13:51:21 +0200 Ludwig Knüpfer <[email protected]> wrote: > Am 28. Oktober 2016 10:03:17 MESZ, schrieb Juergen Stuber > <[email protected]>: > > > >IMHO it is also better to use shift and mask because a write to a > >bitfield is actually a hidden non-atomic read-update-write, which > >may become dangerous when you have concurrent access. > > Maybe I misunderstood you, but I would be very surprised if shift and > mask is atomic.
Most of the time it's not atomic, but the read-update-write will be more explicit. Grüße Jürgen -- Jürgen Stuber <[email protected]> http://www.jstuber.net/ 1B78 A579 E159 2A85 67BB 1314 C083 224B 0F9C DA21
pgplU9JO_p1Om.pgp
Description: OpenPGP digital signature
_______________________________________________ devel mailing list [email protected] https://lists.riot-os.org/mailman/listinfo/devel
