Re: Is there a feature macro for cross-process-capable atomics?

2017-06-05 Thread Jacob Champion
On 06/02/2017 04:18 PM, Yann Ylavic wrote: Looks like there is none :/ That's what I figured; thanks for confirming. 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

Re: Is there a feature macro for cross-process-capable atomics?

2017-06-02 Thread Yann Ylavic
Hi Jacob, On Fri, Jun 2, 2017 at 1:26 AM, Jacob Champion 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

Is there a feature macro for cross-process-capable atomics?

2017-06-01 Thread Jacob Champion
Hi all, 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