guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Some introductory docs about C level threading


From: Kevin Ryde
Subject: Re: Some introductory docs about C level threading
Date: Wed, 02 Feb 2005 10:40:38 +1100
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3 (gnu/linux)

Ken Raeburn <address@hidden> writes:
>
>  -> (....x)[0] = ((... i >> 2) << 2 + scm_tc2_int)
>  -> copy i, masking off bottom two bits, into target location; then add 
> in scm_tc2_int

Any sensible compiler should do the one store that's given, and the
SCM type will mean it's atomic.

You can force load/stores to be exactly as given using `volatile', but
as far as I can tell this particular example shouldn't need that.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]