semaphore.c File Reference

#include "magick/studio.h"
#include "magick/exception.h"
#include "magick/exception-private.h"
#include "magick/memory_.h"
#include "magick/memory-private.h"
#include "magick/semaphore.h"
#include "magick/semaphore-private.h"
#include "magick/string_.h"
#include "magick/thread_.h"
#include "magick/thread-private.h"
#include "magick/utility.h"
Include dependency graph for semaphore.c:

Data Structures

struct  SemaphoreInfo

Defines

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

Define Documentation

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

Function Documentation

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

References AlignedExtent, and CACHE_LINE_SIZE.

Referenced by AllocateSemaphoreInfo().

MagickExport void ActivateSemaphoreInfo ( SemaphoreInfo **  semaphore_info  ) 
MagickExport SemaphoreInfo* AllocateSemaphoreInfo ( void   ) 
MagickExport void DestroySemaphoreInfo ( SemaphoreInfo **  semaphore_info  ) 
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(), CloneBlobInfo(), CloneSplayTree(), CloseMagickLog(), CoderComponentTerminus(), ColorComponentTerminus(), ConfigureComponentTerminus(), DelegateComponentTerminus(), DeleteNodeByValueFromSplayTree(), DeleteNodeFromSplayTree(), DestroyBlob(), DestroyHashmap(), 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(), 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(), MonitorComponentTerminus(), 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(), SetErrorHandler(), SetFatalErrorHandler(), SetImageProgress(), SetImageRegistry(), SetLogEventMask(), SetLogFormat(), SetLogMethod(), SetMagickResourceLimit(), SetMagickSecurityPolicy(), SetRandomKey(), SetWarningHandler(), ThrowException(), TypeComponentTerminus(), UnregisterMagickInfo(), WriteImage(), WriteMatrixElements(), WritePixelCacheIndexes(), and WritePixelCachePixels().

static void* RelinquishSemaphoreMemory ( void *  memory  )  [static]

Referenced by DestroySemaphoreInfo().

MagickExport MagickBooleanType SemaphoreComponentGenesis ( void   ) 

References InitializeMagickMutex(), and MagickTrue.

Referenced by MagickCoreGenesis().

MagickExport void SemaphoreComponentTerminus ( void   ) 

References DestroyMagickMutex().

Referenced by MagickCoreTerminus().

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(), CloneBlobInfo(), CloneSplayTree(), CloseMagickLog(), CoderComponentTerminus(), ColorComponentTerminus(), ConfigureComponentTerminus(), DelegateComponentTerminus(), DeleteNodeByValueFromSplayTree(), DeleteNodeFromSplayTree(), DestroyBlob(), DestroyHashmap(), 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(), 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(), MonitorComponentTerminus(), 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(), SetErrorHandler(), SetFatalErrorHandler(), SetImageProgress(), SetImageRegistry(), SetLogEventMask(), SetLogFormat(), SetLogMethod(), SetMagickResourceLimit(), SetMagickSecurityPolicy(), SetRandomKey(), SetWarningHandler(), ThrowException(), TypeComponentTerminus(), UnregisterMagickInfo(), WriteImage(), WriteMatrixElements(), WritePixelCacheIndexes(), and WritePixelCachePixels().


Generated on 19 Aug 2019 for MagickCore by  doxygen 1.6.1