< Previous by Date Date Index Next by Date >
< Previous in Thread Thread Index Next in Thread >

Re: [reSIProcate] RecursiveMutex for APPLE and INTEL_COMPILER


After some digging, it appears that support for recursive mutexes was added to OS X in version 10.2. Is this sufficiently far in the past (last update released was 10.2.8 in Oct 2003) that we are comfortable with removing the defined(__APPLE__) check?

Best regards,
Byron Campen

Why is this ifdef to not compile RecursiveMutex in the code?

#if defined( __APPLE__ )  || defined (__INTEL_COMPILER)
// !cj! need to write apple/intel mutex stuff
namespace resip
{

RecursiveMutex::RecursiveMutex()
{
   //assert(0);
}
...


OSX (at least 10.4) can compile the regular implementation just
fine---we just removed the defined(__APPLE__) and recursive mutexes
work.  I don't know about the __INTEL_COMPILER, but why are all the
assert(0)'s commented out?  Seems like code that tries to use this
would want to know it's not really getting a mutex.

Bruce
_______________________________________________
resiprocate-devel mailing list
resiprocate-devel@xxxxxxxxxxxxxxxxxxxx
https://list.resiprocate.org/mailman/listinfo/resiprocate-devel