<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Atomic and Shared memory?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/36414543c7/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/36414543c7/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/36414543c7/</id><updated>2025-04-15T14:04:52.960000Z</updated><subtitle>Recent posts to Atomic and Shared memory?</subtitle><entry><title>Atomic and Shared memory?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/36414543c7/?limit=25#23d7" rel="alternate"/><published>2025-04-15T14:04:52.960000Z</published><updated>2025-04-15T14:04:52.960000Z</updated><author><name>snguyen</name><uri>https://forge.codesys.com/u/snguyen/</uri></author><id>https://forge.codesys.comb764d92902091fc32d5d357ef9e73a166681e035</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi, I've read that you can perform Atomic instructions like &lt;code&gt;AtomicReadLInt&lt;/code&gt; on variables. However, I'd like to know if this uses stdatomic internally. &lt;/p&gt;
&lt;p&gt;My main question is : Is it possible to share atomic types in shared memory with CodeSys. If so, what types should they be declared as? If not, are the atomic functions lock-free or does it use a mutex?&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>