MagickCore  7.1.0
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)   num_threads(GetMagickNumberThreads(source,destination,chunk,multithreaded))
 
#define MagickCachePrefetch(address, mode, locality)
 

Typedefs

typedef size_t MagickMutexType
 

Functions

static int GetMagickNumberThreads (const Image *source, const Image *destination, const size_t chunk, int multithreaded)
 
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 
)    num_threads(GetMagickNumberThreads(source,destination,chunk,multithreaded))

Definition at line 30 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 36 of file thread-private.h.

Referenced by PrefetchPixelCacheNexusPixels().

Typedef Documentation

◆ MagickMutexType

typedef size_t MagickMutexType

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

Function Documentation

◆ GetMagickNumberThreads()

static int GetMagickNumberThreads ( const Image source,
const Image destination,
const size_t  chunk,
int  multithreaded 
)
inlinestatic

◆ GetMagickThreadId()

static MagickThreadType GetMagickThreadId ( void  )
inlinestatic

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

References pthread_self.

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

◆ GetMagickThreadSignature()

static size_t GetMagickThreadSignature ( void  )
inlinestatic

Definition at line 80 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 131 of file thread-private.h.

Referenced by AddNoiseImage(), BilateralBlurImage(), 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(), KmeansImage(), 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 104 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 140 of file thread-private.h.

◆ SetOpenMPNested()

static void SetOpenMPNested ( const int  value)
inlinestatic

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