apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sascha Schumann <sas...@schumann.cx>
Subject Re: [PATCH] fix apr_atomic.h for FreeBSD
Date Sun, 23 Mar 2003 07:15:36 GMT
On Sun, 23 Mar 2003, Cliff Woolley wrote:

> On Sun, 23 Mar 2003, Craig Rodrigues wrote:
> > But it exists in the APR codebase,
> I don't count that as making it necessarily correct.  :)  But even if it
> is correct on Netware, that doesn't make it correct on FreeBSD.  And I'm
> pretty sure it's not.

    Since Netware is running on x86 just like FreeBSD and also
    supports preemption and SMP, a simple word-size write is
    incorrect for that platform as there is no bus locking to
    ensure atomicity across multiple CPUs.

    - Sascha

View raw message