[wx-dev] atomic inc/decrement functions
Armel Asselin
asselin.armel at wanadoo.fr
Wed Dec 13 05:08:41 PST 2006
> AA> the problem with glib is that apart from simply copying/pasting their
> code
>
> You can't do this. Their code is under LGPL and ours is not (although it's
> pretty similar).
>
> AA> do not see how to do, I suspect that each Unix variant has its own
> calls,
> AA> and I have only Linux and Solaris here.
>
> Use generic implementation (with a critical section) for all those for
> which we don't have the native implementation. This is the only thing to
> do.
yes, it is not really a decent fallback but at least it would work
correctly.
is there a way to display a warning when compiling? (#pragma warning ?)
I found atomic_inc/atomic_dec_and_test in 'atomic.h' on Linux which should
do the trick. i'll check for Solaris.
Armel
More information about the wx-dev
mailing list