I guess if it spanned two cache lines?

On 14-03-14 09:45 AM, Mario Charest wrote:

 

De : Gervais Mulongoy [mailto:community-noreply@qnx.com]
Envoy� : 14 mars 2014 09:36
� : ostech-core_os@community.qnx.com
Objet : Re: atomic_read() equivalent api in QNX

 

You could do:

unsigned val = atomic_add_value(&loc, 0);

 

Can a read operation be non atomic ?

On 14-03-14 01:16 AM, Kannan, Kabilan wrote:

Hi,

 

atomic_read() - Is there any equivalent api’s available for QNX.

 

Thanks in advance.

 

Thanks,

Kabilan