On 01/10/2019 20:48, Sven Barth via fpc-pascal wrote: > Martin <f...@mfriebe.de <mailto:f...@mfriebe.de>> schrieb am Di., 1. Okt. > 2019, 17:19: > > Therefore my question: > Does RTLeventSetEvent / RTLeventWaitFor make sure memory is > synchronized > between threads? > > The functions themselves AFAIK don't have any memory barriers, so it > would depend solely on the OS primitives.
The used OS-primitives do contain memory barriers (at least on Unix platforms, but I would assume everywhere). Jonas _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal