Bug 43508

Summary: Please be available whether atomics use thread mutexes or not
Product: APR Reporter: Takashi Sato <takashi.asfbugzilla>
Component: APRAssignee: Apache Portable Runtime bugs mailinglist <bugs>
Status: NEW ---    
Severity: enhancement    
Priority: P3    
Version: HEAD   
Target Milestone: ---   
Hardware: All   
OS: All   

Description Takashi Sato 2007-09-28 10:28:53 UTC
I want to use atomic operations to read/write shared memory,
but they may use apr_thread_mutex.

Could you define something like APR_ATOMICS_USE_THREAD_MUTEX on apr.h ?
Comment 1 Davi Arnaut 2007-10-13 16:43:57 UTC
It's kind of difficult to define a macro because the choice is made at
compile-time. Maybe we can introduce a new function to query the the
atomic implementation: if it works on shared memory and so on...
Comment 2 Takashi Sato 2007-10-24 16:25:23 UTC
OK, please consider new fuctions.