On 05/27/2010 10:00 AM, Jay Pipes wrote: > Yeah, agreed, but we should think about whether the existing library > can continue to exist for portability with compilers not supporting > C++0x. As it is now, the existing drizzled::atomics library is really > just a shim over GCC's atomics, Solaris' native atomics, and pthreads > mutexes for non-GCC, non-Solaris platforms. Until C++0x becomes a lot > more ubiquitous, I don't see the need for such a shim/wrapper going > away. > > Thoughts?
Yeah - my suggestion on IRC earlier today was to use the C++0x atomics (which are in GCC 4.4 already) as the baseline, since it is the thing that will be the standard. Then, on platforms that don't have it (solaris and, for the moment osx) we use a shim/compat lib (same as we do with gnulib for broken getopt and mktime on solaris) that implements the C++0x interface. So this will be similar to our current setup, except that for the normal case and for the moving-forward case, we will not need or use the shim at all. I imagine the shim/compat lib being similar to the atomic::pthread_traits class, since it's only for platforms who we are only using as dev targets and not as production targets. > On Thu, May 27, 2010 at 12:48 PM, Brian Aker <br...@tangent.org> wrote: >> Hi! >> >> On May 27, 2010, at 9:44 AM, Jay Pipes wrote: >> >>> implementation in C++0x and GCC 4.4, but we'd still need the pthreads >>> implementation for some Solaris flavors... >> >> Monty pointed out the Boost library is not currently public so it is a no go >> (aka they aren't supporting it). c++0x is really the way to go. >> >> Cheers, >> -Brian > > _______________________________________________ > Mailing list: https://launchpad.net/~drizzle-discuss > Post to : drizzle-discuss@lists.launchpad.net > Unsubscribe : https://launchpad.net/~drizzle-discuss > More help : https://help.launchpad.net/ListHelp > _______________________________________________ Mailing list: https://launchpad.net/~drizzle-discuss Post to : drizzle-discuss@lists.launchpad.net Unsubscribe : https://launchpad.net/~drizzle-discuss More help : https://help.launchpad.net/ListHelp