[fpc-devel] atomic reads and writes, was: "Maybe Gareth can be convinced to spend his energy on this ... "

Benito van der Zander benito at benibela.de
Tue Jul 2 09:13:36 CEST 2019


Hi,

Am 28.06.19 um 11:24 schrieb George Bakhtadze:
> If FPC somehow guarantees that a global field (even only of simple 
> types) can be atomically read and written from any thread for ANY 
> platform that is a very strong guarantee and worth mention in 
> documentation.

  btw, how would you do that if it is in not guaranteed? especially on arm

Are there functions to do only an atomic reads and writes? (besides 
functions like interlockedincrement that do both, a read and write, 
together)

Best,
Benito
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20190702/b8399836/attachment.html>


More information about the fpc-devel mailing list