[gnutls-devel] GnuTLS | WIP: fixed operation under multiple threads (!935)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Mon Feb 25 13:22:38 CET 2019


Not sure if atomic is enough. It just makes a read-modify-write atomic. E.g. it doesn't help if one thread  reads the variable several times and another thread modifies it at the same time. Modern compiler optimization helps a lot (reading just once and keeping the value in a register), but you can't rely on it.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/935#note_144623722
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20190225/4fc99277/attachment.html>


More information about the Gnutls-devel mailing list