MagickCore  7.0.7
Convert, Edit, Or Compose Bitmap Images
thread-private.h File Reference
Include dependency graph for thread-private.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define magick_number_threads(source, destination, chunk, multithreaded)
 
#define MagickCachePrefetch(address, mode, locality)
 

Typedefs

typedef size_t MagickMutexType
 

Functions

static MagickThreadType GetMagickThreadId (void)
 
static size_t GetMagickThreadSignature (void)
 
static MagickBooleanType IsMagickThreadEqual (const MagickThreadType id)
 
static size_t GetOpenMPMaximumThreads (void)
 
static int GetOpenMPThreadId (void)
 
static void SetOpenMPMaximumThreads (const int threads)
 
static void SetOpenMPNested (const int value)
 

Macro Definition Documentation

◆ magick_number_threads

#define magick_number_threads (   source,
  destination,
  chunk,
  multithreaded 
)
Value:
num_threads((multithreaded) == 0 ? 1 : \
(GetImagePixelCacheType(source) != MapCache)) || \
((GetImagePixelCacheType(destination) != MemoryCache) && \
(GetImagePixelCacheType(destination) != MapCache)) ? \
MagickMax(MagickMin((ssize_t) GetMagickResourceLimit(ThreadResource),(ssize_t) (chunk)/64),1))
MagickExport MagickSizeType GetMagickResourceLimit(const ResourceType type)
Definition: resource.c:758
#define MagickMax(x, y)
Definition: image-private.h:26
MagickExport CacheType GetImagePixelCacheType(const Image *image)
Definition: cache.c:1695
#define MagickMin(x, y)
Definition: image-private.h:27
Definition: cache.h:32

Definition at line 34 of file thread-private.h.

◆ MagickCachePrefetch

#define MagickCachePrefetch (   address,
  mode,
  locality 
)
Value:
magick_unreferenced(mode); \
magick_unreferenced(locality);
#define magick_unreferenced(x)

Definition at line 47 of file thread-private.h.

Referenced by PrefetchPixelCacheNexusPixels().

Typedef Documentation

◆ MagickMutexType

typedef size_t MagickMutexType

Definition at line 58 of file thread-private.h.

Function Documentation

◆ GetMagickThreadId()

static MagickThreadType GetMagickThreadId ( void  )
inlinestatic

Definition at line 61 of file thread-private.h.

References pthread_self.

Referenced by AcquireSemaphoreInfo(), GenerateEntropicChaos(), and LockSemaphoreInfo().

◆ GetMagickThreadSignature()

static size_t GetMagickThreadSignature ( void  )
inlinestatic

Definition at line 72 of file thread-private.h.

References pthread_self.

Referenced by TranslateEvent().

◆ GetOpenMPMaximumThreads()

static size_t GetOpenMPMaximumThreads ( void  )
inlinestatic

◆ GetOpenMPThreadId()

static int GetOpenMPThreadId ( void  )
inlinestatic

Definition at line 123 of file thread-private.h.

Referenced by AddNoiseImage(), ClonePixelCacheRepository(), DistortImage(), DrawPolygonPrimitive(), DuplexTransferImageViewIterator(), EvaluateImage(), EvaluateImages(), FloydSteinbergDither(), FxImage(), GetAuthenticMetacontent(), GetAuthenticMetacontentFromCache(), GetAuthenticPixelQueue(), GetAuthenticPixels(), GetAuthenticPixelsCache(), GetAuthenticPixelsFromCache(), GetCacheViewAuthenticMetacontent(), GetCacheViewAuthenticPixelQueue(), GetCacheViewAuthenticPixels(), GetCacheViewExtent(), GetCacheViewVirtualMetacontent(), GetCacheViewVirtualPixelQueue(), GetCacheViewVirtualPixels(), GetImageDepth(), GetImageExtent(), GetImageViewIterator(), GetMagickThreadValue(), GetOneAuthenticPixelFromCache(), GetOneCacheViewAuthenticPixel(), GetOneCacheViewVirtualMethodPixel(), GetOneCacheViewVirtualPixel(), GetOneCacheViewVirtualPixelInfo(), GetOneVirtualPixel(), GetOneVirtualPixelFromCache(), GetOneVirtualPixelInfo(), GetQuantumPixels(), GetVirtualMetacontent(), GetVirtualMetacontentFromCache(), GetVirtualPixelCache(), GetVirtualPixelQueue(), GetVirtualPixels(), GetVirtualPixelsCache(), HorizontalFilter(), LocalContrastImage(), MorphologyPrimitive(), OilPaintImage(), PolynomialImage(), ProfileImage(), QueueAuthenticPixels(), QueueAuthenticPixelsCache(), QueueCacheViewAuthenticPixels(), RandomThresholdImage(), SetImageViewIterator(), SetMagickThreadValue(), SketchImage(), SpreadImage(), StatisticImage(), SyncAuthenticPixels(), SyncAuthenticPixelsCache(), SyncCacheViewAuthenticPixels(), TransferImageViewIterator(), UpdateImageViewIterator(), VerticalFilter(), and WaveletDenoiseImage().

◆ IsMagickThreadEqual()

static MagickBooleanType IsMagickThreadEqual ( const MagickThreadType  id)
inlinestatic

Definition at line 96 of file thread-private.h.

References MagickFalse, MagickTrue, pthread_equal, and pthread_self.

Referenced by LockSemaphoreInfo(), and UnlockSemaphoreInfo().

◆ SetOpenMPMaximumThreads()

static void SetOpenMPMaximumThreads ( const int  threads)
inlinestatic

Definition at line 132 of file thread-private.h.

◆ SetOpenMPNested()

static void SetOpenMPNested ( const int  value)
inlinestatic

Definition at line 141 of file thread-private.h.