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

[reSIProcate] RecursiveMutex for APPLE and INTEL_COMPILER


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