if (status != 0)
{
errno=status;
- ThrowFatalException(ResourceLimitFatalError,
- "UnableToInitializeSemaphore");
+ perror("unable to initialize mutex attributes");
+ _exit(1);
}
#if defined(MAGICKCORE_DEBUG)
#if defined(PTHREAD_MUTEX_ERRORCHECK)
if (status != 0)
{
errno=status;
- ThrowFatalException(ResourceLimitFatalError,
- "UnableToInitializeSemaphore");
+ perror("unable to set mutex type");
+ _exit(1);
}
#endif
#endif
if (status != 0)
{
errno=status;
- ThrowFatalException(ResourceLimitFatalError,
- "UnableToInitializeSemaphore");
+ perror("unable to initialzie mutex");
+ _exit(1);
}
status=pthread_mutexattr_destroy(&mutex_info);
if (status != 0)
{
errno=status;
- ThrowFatalException(ResourceLimitFatalError,
- "UnableToInitializeSemaphore");
+ perror("unable to destroy mutex attributes");
+ _exit(1);
}
}
#elif defined(MAGICKCORE_HAVE_WINTHREADS)
if (status == 0)
{
errno=status;
- ThrowFatalException(ResourceLimitFatalError,
- "UnableToInitializeSemaphore");
- }
+ perror("unable to initialize critical section");
+ _exit(1);
+ }
}
#endif
semaphore_info->id=GetMagickThreadId();
if (status != 0)
{
errno=status;
- perror("unable to destroy semaphore");
+ perror("unable to destroy mutex");
_exit(1);
}
}
if (status != 0)
{
errno=status;
- ThrowFatalException(ResourceLimitFatalError,"UnableToLockSemaphore");
+ perror("unable to lock mutex");
+ _exit(1);
}
}
#elif defined(MAGICKCORE_HAVE_WINTHREADS)
if (status != 0)
{
errno=status;
- ThrowFatalException(ResourceLimitFatalError,"UnableToUnlockSemaphore");
+ perror("unable to unlock mutex");
+ _exit(1);
}
}
#elif defined(MAGICKCORE_HAVE_WINTHREADS)