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

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 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

◆ AlignedExtent

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

Referenced by AcquireSemaphoreMemory().

Function Documentation

◆ AcquireSemaphoreInfo()

◆ AcquireSemaphoreMemory()

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

Definition at line 129 of file semaphore.c.

References AlignedExtent, and CACHE_LINE_SIZE.

Referenced by AcquireSemaphoreInfo().

◆ ActivateSemaphoreInfo()

◆ LockSemaphoreInfo()

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(), CloneSplayTree(), CloseMagickLog(), CoderComponentTerminus(), ColorComponentTerminus(), ConfigureComponentTerminus(), DelegateComponentTerminus(), DeleteNodeByValueFromSplayTree(), DeleteNodeFromSplayTree(), DestroyBlob(), DestroyExceptionInfo(), DestroyImage(), DestroyLinkedList(), DestroyMagickMemory(), DestroyMatrixInfo(), DestroyPixelCache(), DestroyPixelStream(), DestroyRandomInfo(), DestroySplayTree(), DisassociateBlob(), GenerateEntropicChaos(), GetAuthenticMetacontentFromCache(), GetCoderInfoList(), GetCoderList(), GetColorCompliance(), GetColorInfoList(), GetColorList(), GetConfigureInfo(), GetConfigureInfoList(), GetConfigureList(), GetDelegateInfo(), GetDelegateInfoList(), GetDelegateList(), GetImageMagick(), 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(), IsMimeCacheInstantiated(), IsPolicyCacheInstantiated(), IsRightsAuthorized(), IsTypeTreeInstantiated(), LinkedListToArray(), ListMagickResourceInfo(), LocaleComponentTerminus(), LogComponentTerminus(), LogMagickEventList(), MagicComponentTerminus(), MagickComponentTerminus(), MimeComponentTerminus(), ModifyImage(), PolicyComponentTerminus(), ReadImage(), ReadMatrixElements(), ReadPixelCacheMetacontent(), ReadPixelCachePixels(), ReferenceBlob(), ReferenceImage(), ReferencePixelCache(), RegistryComponentTerminus(), RelinquishMagickMemory(), RelinquishMagickResource(), RelinquishUniqueFileResource(), RemoveElementByValueFromLinkedList(), RemoveElementFromLinkedList(), RemoveLastElementFromLinkedList(), RemoveNodeByValueFromSplayTree(), RemoveNodeFromSplayTree(), RenderX11(), ResetLinkedListIterator(), ResetSplayTree(), ResetSplayTreeIterator(), ResizeMagickMemory(), ResourceComponentTerminus(), SetImageRegistry(), SetLogEventMask(), SetLogFormat(), SetLogMethod(), SetMagickResourceLimit(), SetMagickSecurityPolicy(), SetPixelCacheVirtualMethod(), SetRandomKey(), ThrowException(), TypeComponentTerminus(), UnregisterMagickInfo(), ValidatePixelCacheMorphology(), WriteImage(), WriteMatrixElements(), WritePixelCacheMetacontent(), and WritePixelCachePixels().

◆ RelinquishSemaphoreInfo()

◆ RelinquishSemaphoreMemory()

static void* RelinquishSemaphoreMemory ( void *  memory)
static

Definition at line 178 of file semaphore.c.

Referenced by RelinquishSemaphoreInfo().

◆ SemaphoreComponentGenesis()

MagickPrivate MagickBooleanType SemaphoreComponentGenesis ( void  )

Definition at line 399 of file semaphore.c.

References InitializeMagickMutex(), and MagickTrue.

Referenced by MagickCoreGenesis().

◆ SemaphoreComponentTerminus()

MagickPrivate void SemaphoreComponentTerminus ( void  )

Definition at line 423 of file semaphore.c.

References DestroyMagickMutex().

Referenced by MagickCoreTerminus().

◆ UnlockSemaphoreInfo()

MagickExport void UnlockSemaphoreInfo ( SemaphoreInfo semaphore_info)

Definition at line 450 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(), CloneSplayTree(), CloseMagickLog(), CoderComponentTerminus(), ColorComponentTerminus(), ConfigureComponentTerminus(), DelegateComponentTerminus(), DeleteNodeByValueFromSplayTree(), DeleteNodeFromSplayTree(), DestroyBlob(), DestroyExceptionInfo(), DestroyImage(), DestroyLinkedList(), DestroyMagickMemory(), DestroyMatrixInfo(), DestroyPixelCache(), DestroyPixelStream(), DestroyRandomInfo(), DestroySplayTree(), DisassociateBlob(), GenerateEntropicChaos(), GetAuthenticMetacontentFromCache(), GetCoderInfoList(), GetCoderList(), GetColorCompliance(), GetColorInfoList(), GetColorList(), GetConfigureInfo(), GetConfigureInfoList(), GetConfigureList(), GetDelegateInfo(), GetDelegateInfoList(), GetDelegateList(), GetImageMagick(), 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(), IsMimeCacheInstantiated(), IsPolicyCacheInstantiated(), IsRightsAuthorized(), IsTypeTreeInstantiated(), LinkedListToArray(), ListMagickResourceInfo(), LocaleComponentTerminus(), LogComponentTerminus(), LogMagickEventList(), MagicComponentTerminus(), MagickComponentTerminus(), MimeComponentTerminus(), ModifyImage(), PolicyComponentTerminus(), ReadImage(), ReadMatrixElements(), ReadPixelCacheMetacontent(), ReadPixelCachePixels(), ReferenceBlob(), ReferenceImage(), ReferencePixelCache(), RegistryComponentTerminus(), RelinquishMagickMemory(), RelinquishMagickResource(), RelinquishUniqueFileResource(), RemoveElementByValueFromLinkedList(), RemoveElementFromLinkedList(), RemoveLastElementFromLinkedList(), RemoveNodeByValueFromSplayTree(), RemoveNodeFromSplayTree(), RenderX11(), ResetLinkedListIterator(), ResetSplayTree(), ResetSplayTreeIterator(), ResizeMagickMemory(), ResourceComponentTerminus(), SetImageRegistry(), SetLogEventMask(), SetLogFormat(), SetLogMethod(), SetMagickResourceLimit(), SetMagickSecurityPolicy(), SetPixelCacheVirtualMethod(), SetRandomKey(), ThrowException(), TypeComponentTerminus(), UnregisterMagickInfo(), ValidatePixelCacheMorphology(), WriteImage(), WriteMatrixElements(), WritePixelCacheMetacontent(), and WritePixelCachePixels().