semaphore.c File Reference

#include "MagickCore/studio.h"
#include "MagickCore/exception.h"
#include "MagickCore/exception-private.h"
#include "MagickCore/memory_.h"
#include "MagickCore/memory-private.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"

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

Define Documentation

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

Function Documentation

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

References AlignedExtent, and CACHE_LINE_SIZE.

Referenced by AcquireSemaphoreInfo().

MagickExport void ActivateSemaphoreInfo ( SemaphoreInfo **  semaphore_info  ) 
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().

MagickExport void RelinquishSemaphoreInfo ( SemaphoreInfo **  semaphore_info  ) 
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().


Generated on 16 Nov 2019 for MagickCore by  doxygen 1.6.1