MagickCore  6.9.10
Convert, Edit, Or Compose Bitmap Images
semaphore.c File Reference
Include dependency graph for semaphore.c:

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 SemaphoreInfoAllocateSemaphoreInfo (void)
 
MagickExport void DestroySemaphoreInfo (SemaphoreInfo **semaphore_info)
 
MagickExport void LockSemaphoreInfo (SemaphoreInfo *semaphore_info)
 
MagickExport MagickBooleanType SemaphoreComponentGenesis (void)
 
MagickExport void SemaphoreComponentTerminus (void)
 
MagickExport void UnlockSemaphoreInfo (SemaphoreInfo *semaphore_info)
 

Macro Definition Documentation

◆ AlignedExtent

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

Referenced by AcquireSemaphoreMemory().

Function Documentation

◆ AcquireSemaphoreMemory()

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

References AlignedExtent, and CACHE_LINE_SIZE.

Referenced by AllocateSemaphoreInfo().

◆ ActivateSemaphoreInfo()

◆ AllocateSemaphoreInfo()

◆ DestroySemaphoreInfo()

◆ LockSemaphoreInfo()

MagickExport void LockSemaphoreInfo ( SemaphoreInfo semaphore_info)

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(), ClearExceptionInfo(), ClearLinkedList(), ClearMagickException(), CloneSplayTree(), CloseMagickLog(), CoderComponentTerminus(), ColorComponentTerminus(), ConfigureComponentTerminus(), DelegateComponentTerminus(), DeleteNodeByValueFromSplayTree(), DeleteNodeFromSplayTree(), DestroyBlob(), DestroyHashmap(), DestroyImage(), DestroyLinkedList(), DestroyMagickMemory(), DestroyMatrixInfo(), DestroyPixelCache(), DestroyPixelStream(), DestroyRandomInfo(), DestroySplayTree(), DisassociateBlob(), GenerateEntropicChaos(), GetAuthenticIndexQueue(), 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(), GetMimeInfo(), GetMimeInfoList(), GetMimeList(), GetNextKeyInHashmap(), GetNextKeyInSplayTree(), GetNextValueInHashmap(), GetNextValueInLinkedList(), GetNextValueInSplayTree(), GetPolicyInfo(), GetPolicyInfoList(), GetPolicyList(), GetRootValueFromSplayTree(), GetTypeInfoByFamily(), GetTypeInfoList(), GetTypeList(), GetValueFromHashmap(), GetValueFromLinkedList(), GetValueFromSplayTree(), IncreaseHashmapCapacity(), InheritException(), InsertValueInLinkedList(), InsertValueInSortedLinkedList(), IsCoderTreeInstantiated(), IsColorCacheInstantiated(), IsConfigureCacheInstantiated(), IsDelegateCacheInstantiated(), IsLocaleTreeInstantiated(), IsLogCacheInstantiated(), IsMagicCacheInstantiated(), IsMagickTreeInstantiated(), IsMimeCacheInstantiated(), IsPolicyCacheInstantiated(), IsRightsAuthorized(), IsTypeTreeInstantiated(), LinkedListToArray(), ListMagickResourceInfo(), LocaleComponentTerminus(), LogComponentTerminus(), LogMagickEventList(), MagicComponentTerminus(), MagickComponentTerminus(), MimeComponentTerminus(), ModifyImage(), PolicyComponentTerminus(), PutEntryInHashmap(), ReadImage(), ReadMatrixElements(), ReadPixelCacheIndexes(), ReadPixelCachePixels(), ReferenceBlob(), ReferenceImage(), ReferencePixelCache(), RegistryComponentTerminus(), RelinquishMagickMemory(), RelinquishMagickResource(), RelinquishUniqueFileResource(), RemoveElementByValueFromLinkedList(), RemoveElementFromLinkedList(), RemoveEntryFromHashmap(), RemoveLastElementFromLinkedList(), RemoveNodeByValueFromSplayTree(), RemoveNodeFromSplayTree(), RenderX11(), ResetHashmapIterator(), ResetLinkedListIterator(), ResetSplayTree(), ResetSplayTreeIterator(), ResizeMagickMemory(), ResourceComponentTerminus(), SetImageRegistry(), SetLogEventMask(), SetLogFormat(), SetLogMethod(), SetMagickResourceLimit(), SetMagickSecurityPolicy(), SetPixelCacheVirtualMethod(), SetRandomKey(), ThrowException(), TypeComponentTerminus(), UnregisterMagickInfo(), WriteImage(), WriteMatrixElements(), WritePixelCacheIndexes(), and WritePixelCachePixels().

◆ RelinquishSemaphoreMemory()

static void* RelinquishSemaphoreMemory ( void *  memory)
static

Referenced by DestroySemaphoreInfo().

◆ SemaphoreComponentGenesis()

MagickExport MagickBooleanType SemaphoreComponentGenesis ( void  )

References InitializeMagickMutex(), and MagickTrue.

Referenced by MagickCoreGenesis().

◆ SemaphoreComponentTerminus()

MagickExport void SemaphoreComponentTerminus ( void  )

References DestroyMagickMutex().

Referenced by MagickCoreTerminus().

◆ UnlockSemaphoreInfo()

MagickExport void UnlockSemaphoreInfo ( SemaphoreInfo semaphore_info)

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(), ClearExceptionInfo(), ClearLinkedList(), ClearMagickException(), CloneSplayTree(), CloseMagickLog(), CoderComponentTerminus(), ColorComponentTerminus(), ConfigureComponentTerminus(), DelegateComponentTerminus(), DeleteNodeByValueFromSplayTree(), DeleteNodeFromSplayTree(), DestroyBlob(), DestroyHashmap(), DestroyImage(), DestroyLinkedList(), DestroyMagickMemory(), DestroyMatrixInfo(), DestroyPixelCache(), DestroyPixelStream(), DestroyRandomInfo(), DestroySplayTree(), DisassociateBlob(), GenerateEntropicChaos(), GetAuthenticIndexQueue(), 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(), GetMimeInfo(), GetMimeInfoList(), GetMimeList(), GetNextKeyInHashmap(), GetNextKeyInSplayTree(), GetNextValueInHashmap(), GetNextValueInLinkedList(), GetNextValueInSplayTree(), GetPolicyInfo(), GetPolicyInfoList(), GetPolicyList(), GetRootValueFromSplayTree(), GetTypeInfoByFamily(), GetTypeInfoList(), GetTypeList(), GetValueFromHashmap(), GetValueFromLinkedList(), GetValueFromSplayTree(), IncreaseHashmapCapacity(), InheritException(), InsertValueInLinkedList(), InsertValueInSortedLinkedList(), IsCoderTreeInstantiated(), IsColorCacheInstantiated(), IsConfigureCacheInstantiated(), IsDelegateCacheInstantiated(), IsLocaleTreeInstantiated(), IsLogCacheInstantiated(), IsMagicCacheInstantiated(), IsMagickTreeInstantiated(), IsMimeCacheInstantiated(), IsPolicyCacheInstantiated(), IsRightsAuthorized(), IsTypeTreeInstantiated(), LiberateSemaphoreInfo(), LinkedListToArray(), ListMagickResourceInfo(), LocaleComponentTerminus(), LogComponentTerminus(), LogMagickEventList(), MagicComponentTerminus(), MagickComponentTerminus(), MimeComponentTerminus(), ModifyImage(), PolicyComponentTerminus(), PutEntryInHashmap(), ReadImage(), ReadMatrixElements(), ReadPixelCacheIndexes(), ReadPixelCachePixels(), ReferenceBlob(), ReferenceImage(), ReferencePixelCache(), RegistryComponentTerminus(), RelinquishMagickMemory(), RelinquishMagickResource(), RelinquishSemaphoreInfo(), RelinquishUniqueFileResource(), RemoveElementByValueFromLinkedList(), RemoveElementFromLinkedList(), RemoveEntryFromHashmap(), RemoveLastElementFromLinkedList(), RemoveNodeByValueFromSplayTree(), RemoveNodeFromSplayTree(), RenderX11(), ResetHashmapIterator(), ResetLinkedListIterator(), ResetSplayTree(), ResetSplayTreeIterator(), ResizeMagickMemory(), ResourceComponentTerminus(), SetImageRegistry(), SetLogEventMask(), SetLogFormat(), SetLogMethod(), SetMagickResourceLimit(), SetMagickSecurityPolicy(), SetPixelCacheVirtualMethod(), SetRandomKey(), ThrowException(), TypeComponentTerminus(), UnregisterMagickInfo(), WriteImage(), WriteMatrixElements(), WritePixelCacheIndexes(), and WritePixelCachePixels().