On Thu, Apr 09, 2009 at 09:35:08AM +0200, Paul McCullagh wrote:
>> #elif defined(__GNUC__)
>>        __sync_fetch_and_add(mptr, 1);
>>
>>
>> is not valid, as that is not in existence everywhere (like sparc)
>
> Does Spark Linux have something we can use, or is the only alternative  
> to use assembler?

I don't think there's something there in GCC for sparc... 

so maybe either asm or a lock....

>> In drizzled/atomic.h we fall back to pthread locks on platforms that
>> don't have TBB or gcc atomics or Sun atomics. You're welcome to use
>> drizzled/atomic.h in your code, of course... :)
>
> Love too, but we have to solve the problem for MySQL as well :)

use the header there too? (i.e. copy the header for when on mysql)
-- 
Stewart Smith

_______________________________________________
Mailing list: https://launchpad.net/~drizzle-discuss
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~drizzle-discuss
More help   : https://help.launchpad.net/ListHelp

Reply via email to