]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sun, 26 Jan 2014 01:40:27 +0000 (01:40 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sun, 26 Jan 2014 01:40:27 +0000 (01:40 +0000)
MagickCore/semaphore-private.h

index c3450e73ca398781854c782b331c2501a008f460..fe3ec898b482cc73351544a161574196dc3bfff3 100644 (file)
@@ -48,26 +48,27 @@ static MagickBooleanType
 static inline void DestroyMagickMutex(void)
 {
   if (active_mutex != MagickFalse)
+    {
 #if defined(MAGICKCORE_OPENMP_SUPPORT)
-    omp_destroy_lock(&semaphore_mutex);
-#elif defined(MAGICKCORE_THREAD_SUPPORT)
-    ;
+      omp_destroy_lock(&semaphore_mutex);
 #elif defined(MAGICKCORE_HAVE_WINTHREADS)
-    DeleteCriticalSection(&semaphore_mutex);
+      DeleteCriticalSection(&semaphore_mutex);
 #endif
+    }
   active_mutex=MagickFalse;
 }
 
 static inline void InitializeMagickMutex(void)
 {
   if (active_mutex == MagickFalse)
+    {
 #if defined(MAGICKCORE_OPENMP_SUPPORT)
-    omp_init_lock(&semaphore_mutex);
-#elif defined(MAGICKCORE_THREAD_SUPPORT)
-    ;
+      omp_init_lock(&semaphore_mutex);
 #elif defined(MAGICKCORE_HAVE_WINTHREADS)
-    InitializeCriticalSection(&semaphore_mutex);
+      InitializeCriticalSection(&semaphore_mutex);
 #endif
+    }
+  active_mutex=MagickTrue;
 }
 
 static inline void LockMagickMutex(void)