MagickCore 7.1.0
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)    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(address); \
magick_unreferenced(mode); \
magick_unreferenced(locality);
#define magick_unreferenced(x)

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

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

◆ GetMagickThreadSignature()

static size_t GetMagickThreadSignature ( void  )
inlinestatic

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

References pthread_self.

Referenced by TranslateEvent().

◆ GetOpenMPMaximumThreads()

◆ GetOpenMPThreadId()

static int GetOpenMPThreadId ( void  )
inlinestatic

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

Referenced by AddNoiseImage(), BilateralBlurImage(), ClonePixelCacheRepository(), DistortImage(), DrawPolygonPrimitive(), DuplexTransferImageViewIterator(), EvaluateImage(), EvaluateImages(), FloydSteinbergDither(), FxEvaluateChannelExpression(), 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 109 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 145 of file thread-private.h.

References magick_unreferenced.

◆ SetOpenMPNested()

static void SetOpenMPNested ( const int  value)
inlinestatic

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

References magick_unreferenced.