apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yann Ylavic <ylavic....@gmail.com>
Subject Re: Is there a feature macro for cross-process-capable atomics?
Date Fri, 02 Jun 2017 23:18:57 GMT
Hi Jacob,

On Fri, Jun 2, 2017 at 1:26 AM, Jacob Champion <champion.p@gmail.com> wrote:
> I'd like to be able to use the apr_atomic primitives for cross-process work
> in shared memory, but as far as I can see, not every implementation is
> guaranteed to work across processes (for example, the generic implementation
> uses apr_thread_mutex*).
> I'd be fine falling back to a heavyweight implementation if a platform truly
> needed it, but I can't find a way to "query" characteristics of the atomics
> implementation, so the fallback unfortunately has to be the default. Is
> there a feature macro I'm missing somewhere?

Looks like there is none :/
OTOH, I don't see which platform use generic (mutex) atomics by
default, they have to be force_generic_atomics=yes at ./configure time
or -DUSE_ATOMICS_GENERIC at compile time...


View raw message