On 11/02/2011 07:59 AM, Andrew MacLeod wrote:
> Simply adds an optional parameter to __atomic_{is_always}_lock_free
> which is used to check alignment against the size parameter. NULL as
> the object pointer produces the same behaviour as today, lockfreeness
> based on proper alignment for an integral value of the specified size.

Why a pointer to the object?  Are you really going to check the real
object alignment in the library __atomic_lock_free?

Seems to me that another integer argument does just as well:

  __atomic_is_always_lock_free (sizeof(T), __alignof(T))


r~

Reply via email to