[M3devel] atomics questions
Tony Hosking
hosking at cs.purdue.edu
Thu Feb 11 17:53:24 CET 2010
On 11 Feb 2010, at 07:11, Jay K wrote:
> What if some atomic operations aren't available?
>
>
> If none are available, then they can all fallback to one giant lock.
>
Correct.
>
> But what if some are and some aren't?
> A lock per type?
Yes. Definitely. No unions in M3.
>
> That fails with like
> union {
> short s[2];
> int i;
> } u;
>
>
> and platform has atomic int but not atomic short.
We do have atomic WIDECHARl
>
>
> - Jay
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20100211/3ad96fe0/attachment-0002.html>
More information about the M3devel
mailing list