[ltt-dev] liburcu: likely and unlikely macro collision

Mathieu Desnoyers mathieu.desnoyers at efficios.com
Tue Nov 1 18:00:18 EDT 2011


Hi,

likely()/unlikely() seems to be amongst the last macros that urcu
defines that don't have urcu-specific prefixes. Thoughts on whether we
should add a prefix such as caa_likely() and caa_unlikely() are welcome.

Thanks,

Mathieu

* Rafael Fernandez (rfernan3 at illinois.edu) wrote:
> Hi Matthieu,
> 
> I am trying to incorporate liburcu in a project I am working with.
> Unfourtunately there are several collisions of the definitions of
> likely and unlikely. Would it be possible for you to add a prefix to
> the macros such that there aren't any collisions? I think it would be
> cleaner/easier for future users to incorporate into existing code
> bases.
> 
> Thank you,
> Rafael
> 
> -- 
> Rafael E. Fernández
> B.S. Computer Science
> University of Illinois at Urbana-Champaign

-- 
Mathieu Desnoyers
Operating System Efficiency R&D Consultant
EfficiOS Inc.
http://www.efficios.com




More information about the lttng-dev mailing list