MagickCore  6.7.5
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.

Defines

#define MagickCachePrefetch(address, mode, locality)
#define omp_throttle(factor)

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)

Define Documentation

#define MagickCachePrefetch (   address,
  mode,
  locality 
)

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

#define omp_throttle (   factor)
Value:
num_threads(omp_get_max_threads() >> \
   (factor) == 0 ? 1 : omp_get_max_threads() >> (factor))

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


Typedef Documentation

typedef size_t MagickMutexType

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


Function Documentation

static MagickThreadType GetMagickThreadId ( void  ) [inline, static]
static size_t GetMagickThreadSignature ( void  ) [inline, static]

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

References pthread_self.

Referenced by TranslateEvent().

static int GetOpenMPThreadId ( void  ) [inline, static]
static MagickBooleanType IsMagickThreadEqual ( const MagickThreadType  id) [inline, static]

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

References pthread_equal, pthread_self, MagickTrue, and MagickFalse.

Referenced by LockSemaphoreInfo(), and UnlockSemaphoreInfo().

static void SetOpenMPMaximumThreads ( const int  threads) [inline, static]

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

Referenced by SetMagickResourceLimit().

static void SetOpenMPNested ( const int  value) [inline, static]

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