MagickCore  7.0.9
Convert, Edit, Or Compose Bitmap Images
semaphore.c File Reference

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 SemaphoreInfoAcquireSemaphoreInfo (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)
 

Macro Definition Documentation

#define AlignedExtent (   size,
  alignment 
)    (((size)+((alignment)-1)) & ~((alignment)-1))

Referenced by AcquireSemaphoreMemory().

Function Documentation

static void* AcquireSemaphoreMemory ( const size_t  count,
const size_t  quantum 
)
static

References AlignedExtent, and CACHE_LINE_SIZE.

Referenced by AcquireSemaphoreInfo().

MagickExport void LockSemaphoreInfo ( SemaphoreInfo semaphore_info)

References FormatLocaleFile(), GetMagickThreadId(), SemaphoreInfo::id, IsMagickThreadEqual(), MagickCoreSignature, MagickFalse, SemaphoreInfo::mutex, 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().

static void* RelinquishSemaphoreMemory ( void *  memory)
static

Referenced by RelinquishSemaphoreInfo().

MagickPrivate MagickBooleanType SemaphoreComponentGenesis ( void  )

References InitializeMagickMutex(), and MagickTrue.

Referenced by MagickCoreGenesis().

MagickPrivate void SemaphoreComponentTerminus ( void  )

References DestroyMagickMutex().

Referenced by MagickCoreTerminus().

MagickExport void UnlockSemaphoreInfo ( SemaphoreInfo semaphore_info)

References FormatLocaleFile(), SemaphoreInfo::id, IsMagickThreadEqual(), MagickCoreSignature, MagickFalse, SemaphoreInfo::mutex, 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().