Hello All:
I wanted to repost this under a different thread name. This current code
causes OpenThreads Atomic operations to be compiled in a way that causes
crashes. The current code looks like:
#define _OPENTHREADS_ATOMIC_USE_MUTEX
#if defined(MAC_OS_X_VERSION_10_5)
#if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5
#define _OPENTHREADS_ATOMIC_USE_BSD_ATOMIC
#undef _OPENTHREADS_ATOMIC_USE_MUTEX
#endif
#endif
I was wondering if we could modify the Config file to not automatically select
on MAC's. For when I set the deployment to 10.5 any Qt gui I created would
crash when accessing any of the referenced pointers. When I manually #if 0 the
MAC out and had the OpenThreads use the builtin mutex everything ran fine.
I was wondering if we just do the following:
#define _OPENTHREADS_ATOMIC_USE_MUTEX
/* #undef _OPENTHREADS_ATOMIC_USE_BSD_ATOMIC */
/* #undef _OPENTHREADS_ATOMIC_USE_GCC_BUILTINS */
/* #undef _OPENTHREADS_ATOMIC_USE_MIPOSPRO_BUILTINS */
/* #undef _OPENTHREADS_ATOMIC_USE_SUN */
/* #undef _OPENTHREADS_ATOMIC_USE_WIN32_INTERLOCKED */
/* #undef _OPENTHREADS_ATOMIC_USE_MUTEX */
Just add the _OPENTHREADS_ATOMIC_USE_BSD_ATOMIC as something that could be
uncommented by the user to allow one to do custom setup of a different atomic
operation.
Take care
Garrett Potts
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org