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

Re: Any plans for glib to contain atomic compare/exchange?



On Wed, 2003-07-30 at 15:52, Peter "Firefly" Lund wrote:
> In order to get those things right on non-x86 SMP architectures, wouldn't
> you also need to put memory barrier functions/macros into glib?

Sorry, I don't know anything about non-x86 SMP architectures :( Why
would you need those? What exactly would they do? Just wrap mprotect
etc?

> (and wouldn't it be too hard to do for most "programmers" anyway?  Those
> precious few who can do it right can probably do it without glib --
> probably the easiest way is to steal/adapt similar code from the Linux
> kernel)

Wouldn't what be too hard to do? Using them? If so then I don't think
so. Sure maybe this kind of thread stuff is a bit advanced for a lot of
people, but that doesn't make it any less useful.

-- 
Mike Hearn <m.hearn@signal.qinetiq.com>
QinetiQ - Malvern Technology Center




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