On Wed, Dec 05, 2001 at 10:14:20AM -0800, Aaron Bannert wrote: > No, it'll be something like this: > > #ifdef APR_HAS_THREADS > /* do stuff to prevent deadlocks on threaded builds, like: */ > apr_thread_mutex_lock(mutex); > #else > /* I can't imagine what you'd need to do special to treat the > * non-threaded case, so the "#else" case probably won't exist. */ > #endif > > Pools don't need cross-process locks, right? In any case, the new lock > api is supposed to be a full replacement for the old one.
Right, pools are at the very least contained to a single memory space. So, there should be no need for locks when we don't have threads. (They aren't shared memory pools...) FWIW, that should be #if APR_HAS_THREADS =) -- justin
