[interprocess] patch for AIX

Hello, Currently interprocess doesn't work on AIX for two reasons : - detail/os_thread_functions.hpp uses ::pthread_equal but this fails because pthread_equal is a macro under AIX and it fails because of the :: prefix - in detail/atomic.hpp there is no implementation of PowerPC under AIX so I added one that uses the combination of lwarx and stwcx for each function to implement. I saw that under AIX, the detail/atomic_count.hpp and detail/sp_counted_base.hpp falls back to a pthread implementation, I could submit a patch for a real atomic implementation under AIX but I wonder if there are other places in boost where this should be done ? Thanks, Etienne PIERRE

On Tue, Apr 28, 2009 at 12:24 PM, Etienne PIERRE <e.ti.n.pierre@gmail.com>wrote:
Hello,
Currently interprocess doesn't work on AIX for two reasons : - detail/os_thread_functions.hpp uses ::pthread_equal but this fails because pthread_equal is a macro under AIX and it fails because of the :: prefix - in detail/atomic.hpp there is no implementation of PowerPC under AIX so I added one that uses the combination of lwarx and stwcx for each function to implement.
Sorry, I forgot to say that I submitted a patch for this under https://svn.boost.org/trac/boost/ticket/2973 Regards, Étienne PIERRE

Etienne PIERRE wrote:
Hello,
Currently interprocess doesn't work on AIX for two reasons : - detail/os_thread_functions.hpp uses ::pthread_equal but this fails because pthread_equal is a macro under AIX and it fails because of the :: prefix - in detail/atomic.hpp there is no implementation of PowerPC under AIX so I added one that uses the combination of lwarx and stwcx for each function to implement.
Ok. Unfortunately it's late for Boost 1.39. I'm quite busy this week but I will review it ASAP and commit it to trunk.
Thanks,
Thanks! Ion
participants (2)
-
Etienne PIERRE
-
Ion Gaztañaga