]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sun, 26 Jan 2014 14:19:16 +0000 (14:19 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sun, 26 Jan 2014 14:19:16 +0000 (14:19 +0000)
MagickCore/semaphore.c

index b6394332f0aa206ff09dc4eba242a82cf45118b2..5e327975cefe77d2ec59ba92e0adea49b8b84575 100644 (file)
@@ -235,7 +235,7 @@ MagickExport SemaphoreInfo *AllocateSemaphoreInfo(void)
     if (status != 0)
       {
         errno=status;
-        perror("unable to initialzie mutex");
+        perror("unable to initialize mutex");
         _exit(1);
       }
     status=pthread_mutexattr_destroy(&mutex_info);
@@ -476,9 +476,7 @@ MagickExport void UnlockSemaphoreInfo(SemaphoreInfo *semaphore_info)
 {
   assert(semaphore_info != (SemaphoreInfo *) NULL);
   assert(semaphore_info->signature == MagickSignature);
-#if defined(MAGICKCORE_OPENMP_SUPPORT)
-  omp_unset_lock((omp_lock_t *) &semaphore_info->mutex);
-#elif defined(MAGICKCORE_DEBUG)
+#if defined(MAGICKCORE_DEBUG)
   assert(IsMagickThreadEqual(semaphore_info->id) != MagickFalse);
   if (semaphore_info->reference_count == 0)
     {
@@ -489,7 +487,9 @@ MagickExport void UnlockSemaphoreInfo(SemaphoreInfo *semaphore_info)
     }
   semaphore_info->reference_count--;
 #endif
-#if defined(MAGICKCORE_THREAD_SUPPORT)
+#if defined(MAGICKCORE_OPENMP_SUPPORT)
+  omp_unset_lock((omp_lock_t *) &semaphore_info->mutex);
+#elif defined(MAGICKCORE_THREAD_SUPPORT)
   {
     int
       status;