On 12/14/24 10:57 PM, andy pugh wrote:
Probably done as an "it should not hurt" effort. However, using volatile
on shared variables in a multi-threaded context is wrong, plain and
simple, and therefore actually harmful.
Is our realtime layer multithreaded? I have always thought that it was
deliberately single-threaded, but have never really looked to see.

There are multiple threads attached to the same shared memory. Whether these threads are part of one process or divided between multiple processes does not matter. They share part of the accessible memory space by using shared memory for which the proper synchronization is required.

--
Greetings Bertho

(disclaimers are disclaimed)



_______________________________________________
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to