MagickCore 7.1.0
Convert, Edit, Or Compose Bitmap Images
|
#include "MagickCore/studio.h"
#include "MagickCore/exception.h"
#include "MagickCore/exception-private.h"
#include "MagickCore/memory_.h"
#include "MagickCore/memory-private.h"
#include "MagickCore/mutex.h"
#include "MagickCore/semaphore.h"
#include "MagickCore/semaphore-private.h"
#include "MagickCore/string_.h"
#include "MagickCore/thread_.h"
#include "MagickCore/thread-private.h"
#include "MagickCore/utility-private.h"
Go to the source code of this file.
Data Structures | |
struct | SemaphoreInfo |
Macros | |
#define | AlignedExtent(size, alignment) (((size)+((alignment)-1)) & ~((alignment)-1)) |
Functions | |
MagickExport void | ActivateSemaphoreInfo (SemaphoreInfo **semaphore_info) |
static void * | AcquireSemaphoreMemory (const size_t count, const size_t quantum) |
static void * | RelinquishSemaphoreMemory (void *memory) |
MagickExport SemaphoreInfo * | AcquireSemaphoreInfo (void) |
MagickExport void | LockSemaphoreInfo (SemaphoreInfo *semaphore_info) |
MagickExport void | RelinquishSemaphoreInfo (SemaphoreInfo **semaphore_info) |
MagickPrivate MagickBooleanType | SemaphoreComponentGenesis (void) |
MagickPrivate void | SemaphoreComponentTerminus (void) |
MagickExport void | UnlockSemaphoreInfo (SemaphoreInfo *semaphore_info) |
#define AlignedExtent | ( | size, | |
alignment | |||
) | (((size)+((alignment)-1)) & ~((alignment)-1)) |
MagickExport SemaphoreInfo * AcquireSemaphoreInfo | ( | void | ) |
Definition at line 192 of file semaphore.c.
References AcquireSemaphoreMemory(), GetMagickThreadId(), SemaphoreInfo::id, MagickCoreSignature, SemaphoreInfo::mutex, pthread_mutex_init, pthread_mutexattr_destroy, pthread_mutexattr_init, SemaphoreInfo::reference_count, ResourceLimitFatalError, SemaphoreInfo::signature, and ThrowFatalException.
Referenced by AcquireImage(), AcquireMatrixInfo(), AcquirePixelCache(), AcquireRandomInfo(), ActivateSemaphoreInfo(), AnnotateComponentGenesis(), CacheComponentGenesis(), CloneImage(), CoderComponentGenesis(), ColorComponentGenesis(), ConfigureComponentGenesis(), DelegateComponentGenesis(), ExceptionComponentGenesis(), GetBlobInfo(), GetImagePixelCache(), GetQuantumInfo(), InitializeExceptionInfo(), LoadDelegateCache(), LocaleComponentGenesis(), LogComponentGenesis(), MagicComponentGenesis(), MagickComponentGenesis(), MimeComponentGenesis(), MonitorComponentGenesis(), NewLinkedList(), NewSplayTree(), PolicyComponentGenesis(), RandomComponentGenesis(), RegisterMagickInfo(), RegistryComponentGenesis(), ResourceComponentGenesis(), ResourceComponentTerminus(), and TypeComponentGenesis().
|
static |
Definition at line 129 of file semaphore.c.
References AlignedExtent, and CACHE_LINE_SIZE.
Referenced by AcquireSemaphoreInfo().
MagickExport void ActivateSemaphoreInfo | ( | SemaphoreInfo ** | semaphore_info | ) |
Definition at line 98 of file semaphore.c.
References AcquireSemaphoreInfo(), LockMagickMutex(), and UnlockMagickMutex().
Referenced by AcquireMagickMemory(), AcquireMagickResource(), AcquireUniqueFileResource(), AnnotateComponentTerminus(), CacheComponentTerminus(), CoderComponentTerminus(), ColorComponentTerminus(), ConfigureComponentTerminus(), DelegateComponentTerminus(), DestroyExceptionInfo(), DestroyMagickMemory(), ExceptionComponentTerminus(), GetMagickResource(), GetMagickResourceLimit(), IsCoderTreeInstantiated(), IsColorCacheInstantiated(), IsConfigureCacheInstantiated(), IsDelegateCacheInstantiated(), IsLocaleTreeInstantiated(), IsLogCacheInstantiated(), IsMagicCacheInstantiated(), IsMagickTreeInstantiated(), IsMagicListInstantiated(), IsMimeCacheInstantiated(), IsPolicyCacheInstantiated(), IsTypeTreeInstantiated(), ListMagickResourceInfo(), LocaleComponentTerminus(), LogComponentTerminus(), LogMagickEventList(), MagicComponentTerminus(), MagickComponentTerminus(), MimeComponentTerminus(), MonitorComponentTerminus(), PolicyComponentTerminus(), RandomComponentTerminus(), RegistryComponentTerminus(), RelinquishMagickResource(), RelinquishUniqueFileResource(), RenderX11(), SetErrorHandler(), SetFatalErrorHandler(), SetImageProgress(), SetImageRegistry(), SetMagickResourceLimit(), SetWarningHandler(), and TypeComponentTerminus().
MagickExport void LockSemaphoreInfo | ( | SemaphoreInfo * | semaphore_info | ) |
Definition at line 293 of file semaphore.c.
References FormatLocaleFile(), GetMagickThreadId(), SemaphoreInfo::id, IsMagickThreadEqual(), MagickCoreSignature, MagickFalse, SemaphoreInfo::mutex, pthread_mutex_lock, SemaphoreInfo::reference_count, and SemaphoreInfo::signature.
Referenced by AcquireMagickMemory(), AcquireMagickResource(), AcquireUniqueFileResource(), AddValueToSplayTree(), AppendValueToLinkedList(), CatchException(), ClearLinkedList(), ClearMagickException(), CloneBlobInfo(), CloneSplayTree(), CloseMagickLog(), CoderComponentTerminus(), ColorComponentTerminus(), ConfigureComponentTerminus(), DelegateComponentTerminus(), DeleteNodeByValueFromSplayTree(), DeleteNodeFromSplayTree(), DestroyBlob(), DestroyExceptionInfo(), DestroyImage(), DestroyLinkedList(), DestroyMagickMemory(), DestroyMatrixInfo(), DestroyPixelCache(), DestroyPixelStream(), DestroyRandomInfo(), DestroySplayTree(), DisassociateBlob(), ExceptionComponentTerminus(), GenerateEntropicChaos(), GetCoderInfoList(), GetCoderList(), GetColorCompliance(), GetColorInfoList(), GetColorList(), GetConfigureInfo(), GetConfigureInfoList(), GetConfigureList(), GetDelegateInfo(), GetDelegateInfoList(), GetDelegateList(), GetImageMagick(), GetImagePixelCache(), GetImageReferenceCount(), GetLastValueInLinkedList(), GetLocaleInfo_(), GetLocaleInfoList(), GetLocaleList(), GetLogInfo(), GetLogInfoList(), GetLogList(), GetMagicInfo(), GetMagicInfoList(), GetMagickInfo(), GetMagickInfoList(), GetMagickList(), GetMagickResource(), GetMagickResourceLimit(), GetMagicList(), GetMagicPatternExtent(), GetMimeInfo(), GetMimeInfoList(), GetMimeList(), GetNextKeyInSplayTree(), GetNextValueInLinkedList(), GetNextValueInSplayTree(), GetPolicyInfo(), GetPolicyInfoList(), GetPolicyList(), GetRootValueFromSplayTree(), GetTypeInfoByFamily(), GetTypeInfoList(), GetTypeList(), GetValueFromLinkedList(), GetValueFromSplayTree(), InheritException(), InsertValueInLinkedList(), InsertValueInSortedLinkedList(), IsCoderTreeInstantiated(), IsColorCacheInstantiated(), IsConfigureCacheInstantiated(), IsDelegateCacheInstantiated(), IsLocaleTreeInstantiated(), IsLogCacheInstantiated(), IsMagicCacheInstantiated(), IsMagickTreeInstantiated(), IsMagicListInstantiated(), IsMimeCacheInstantiated(), IsPolicyCacheInstantiated(), IsRightsAuthorized(), IsTypeTreeInstantiated(), LinkedListToArray(), ListMagickResourceInfo(), LocaleComponentTerminus(), LogComponentTerminus(), LogMagickEventList(), MagicComponentTerminus(), MagickComponentTerminus(), MimeComponentTerminus(), ModifyImage(), MonitorComponentTerminus(), PolicyComponentTerminus(), ReadImage(), ReadMatrixElements(), ReadPixelCacheMetacontent(), ReadPixelCachePixels(), ReferenceBlob(), ReferenceImage(), ReferencePixelCache(), RegistryComponentTerminus(), RelinquishMagickMemory(), RelinquishMagickResource(), RelinquishUniqueFileResource(), RemoveElementByValueFromLinkedList(), RemoveElementFromLinkedList(), RemoveLastElementFromLinkedList(), RemoveNodeByValueFromSplayTree(), RemoveNodeFromSplayTree(), RenderX11(), ResetLinkedListIterator(), ResetSplayTree(), ResetSplayTreeIterator(), ResizeMagickMemory(), ResourceComponentTerminus(), SetErrorHandler(), SetFatalErrorHandler(), SetImageProgress(), SetImageRegistry(), SetLogEventMask(), SetLogFormat(), SetLogMethod(), SetMagickResourceLimit(), SetMagickSecurityPolicy(), SetPolicyValue(), SetRandomKey(), SetWarningHandler(), ThrowException(), TypeComponentTerminus(), UnregisterMagickInfo(), WriteImage(), WriteMatrixElements(), WritePixelCacheMetacontent(), and WritePixelCachePixels().
MagickExport void RelinquishSemaphoreInfo | ( | SemaphoreInfo ** | semaphore_info | ) |
Definition at line 351 of file semaphore.c.
References LockMagickMutex(), MagickCoreSignature, pthread_mutex_destroy, RelinquishSemaphoreMemory(), and UnlockMagickMutex().
Referenced by AnnotateComponentTerminus(), CacheComponentTerminus(), CoderComponentTerminus(), ColorComponentTerminus(), ConfigureComponentTerminus(), DelegateComponentTerminus(), DestroyBlob(), DestroyDelegate(), DestroyExceptionInfo(), DestroyImage(), DestroyLinkedList(), DestroyLogElement(), DestroyMagickMemory(), DestroyMagickNode(), DestroyMatrixInfo(), DestroyPixelCache(), DestroyPixelStream(), DestroyQuantumInfo(), DestroyRandomInfo(), DestroySplayTree(), ExceptionComponentTerminus(), GetImagePixelCache(), LocaleComponentTerminus(), LogComponentTerminus(), MagicComponentTerminus(), MagickComponentTerminus(), MimeComponentTerminus(), MonitorComponentTerminus(), PolicyComponentTerminus(), RandomComponentTerminus(), RegistryComponentTerminus(), ResourceComponentTerminus(), and TypeComponentTerminus().
|
static |
Definition at line 178 of file semaphore.c.
Referenced by RelinquishSemaphoreInfo().
MagickPrivate MagickBooleanType SemaphoreComponentGenesis | ( | void | ) |
Definition at line 398 of file semaphore.c.
References InitializeMagickMutex(), and MagickTrue.
Referenced by MagickCoreGenesis().
MagickPrivate void SemaphoreComponentTerminus | ( | void | ) |
Definition at line 422 of file semaphore.c.
References DestroyMagickMutex().
Referenced by MagickCoreTerminus().
MagickExport void UnlockSemaphoreInfo | ( | SemaphoreInfo * | semaphore_info | ) |
Definition at line 449 of file semaphore.c.
References FormatLocaleFile(), SemaphoreInfo::id, IsMagickThreadEqual(), MagickCoreSignature, MagickFalse, SemaphoreInfo::mutex, pthread_mutex_unlock, SemaphoreInfo::reference_count, and SemaphoreInfo::signature.
Referenced by AcquireMagickMemory(), AcquireMagickResource(), AcquireUniqueFileResource(), AddValueToSplayTree(), AppendValueToLinkedList(), CatchException(), ClearLinkedList(), ClearMagickException(), CloneBlobInfo(), CloneSplayTree(), CloseMagickLog(), CoderComponentTerminus(), ColorComponentTerminus(), ConfigureComponentTerminus(), DelegateComponentTerminus(), DeleteNodeByValueFromSplayTree(), DeleteNodeFromSplayTree(), DestroyBlob(), DestroyExceptionInfo(), DestroyImage(), DestroyLinkedList(), DestroyMagickMemory(), DestroyMatrixInfo(), DestroyPixelCache(), DestroyPixelStream(), DestroyRandomInfo(), DestroySplayTree(), DisassociateBlob(), ExceptionComponentTerminus(), GenerateEntropicChaos(), GetCoderInfoList(), GetCoderList(), GetColorCompliance(), GetColorInfoList(), GetColorList(), GetConfigureInfo(), GetConfigureInfoList(), GetConfigureList(), GetDelegateInfo(), GetDelegateInfoList(), GetDelegateList(), GetImageMagick(), GetImagePixelCache(), GetImageReferenceCount(), GetLastValueInLinkedList(), GetLocaleInfo_(), GetLocaleInfoList(), GetLocaleList(), GetLogInfo(), GetLogInfoList(), GetLogList(), GetMagicInfo(), GetMagicInfoList(), GetMagickInfo(), GetMagickInfoList(), GetMagickList(), GetMagickResource(), GetMagickResourceLimit(), GetMagicList(), GetMagicPatternExtent(), GetMimeInfo(), GetMimeInfoList(), GetMimeList(), GetNextKeyInSplayTree(), GetNextValueInLinkedList(), GetNextValueInSplayTree(), GetPolicyInfo(), GetPolicyInfoList(), GetPolicyList(), GetRootValueFromSplayTree(), GetTypeInfoByFamily(), GetTypeInfoList(), GetTypeList(), GetValueFromLinkedList(), GetValueFromSplayTree(), InheritException(), InsertValueInLinkedList(), InsertValueInSortedLinkedList(), IsCoderTreeInstantiated(), IsColorCacheInstantiated(), IsConfigureCacheInstantiated(), IsDelegateCacheInstantiated(), IsLocaleTreeInstantiated(), IsLogCacheInstantiated(), IsMagicCacheInstantiated(), IsMagickTreeInstantiated(), IsMagicListInstantiated(), IsMimeCacheInstantiated(), IsPolicyCacheInstantiated(), IsRightsAuthorized(), IsTypeTreeInstantiated(), LinkedListToArray(), ListMagickResourceInfo(), LocaleComponentTerminus(), LogComponentTerminus(), LogMagickEventList(), MagicComponentTerminus(), MagickComponentTerminus(), MimeComponentTerminus(), ModifyImage(), MonitorComponentTerminus(), PolicyComponentTerminus(), ReadImage(), ReadMatrixElements(), ReadPixelCacheMetacontent(), ReadPixelCachePixels(), ReferenceBlob(), ReferenceImage(), ReferencePixelCache(), RegistryComponentTerminus(), RelinquishMagickMemory(), RelinquishMagickResource(), RelinquishUniqueFileResource(), RemoveElementByValueFromLinkedList(), RemoveElementFromLinkedList(), RemoveLastElementFromLinkedList(), RemoveNodeByValueFromSplayTree(), RemoveNodeFromSplayTree(), RenderX11(), ResetLinkedListIterator(), ResetSplayTree(), ResetSplayTreeIterator(), ResizeMagickMemory(), ResourceComponentTerminus(), SetErrorHandler(), SetFatalErrorHandler(), SetImageProgress(), SetImageRegistry(), SetLogEventMask(), SetLogFormat(), SetLogMethod(), SetMagickResourceLimit(), SetMagickSecurityPolicy(), SetPolicyValue(), SetRandomKey(), SetWarningHandler(), ThrowException(), TypeComponentTerminus(), UnregisterMagickInfo(), WriteImage(), WriteMatrixElements(), WritePixelCacheMetacontent(), and WritePixelCachePixels().