Lines Matching full:keys
96 **keys; in CreateMagickThreadKey()
98 keys=(MagickThreadValue **) key; in CreateMagickThreadKey()
99 *keys=(MagickThreadValue *) AcquireQuantumMemory(1,sizeof(**keys)); in CreateMagickThreadKey()
100 if (*keys != (MagickThreadValue *) NULL) in CreateMagickThreadKey()
102 (*keys)->number_threads=GetOpenMPMaximumThreads(); in CreateMagickThreadKey()
103 (*keys)->values=AcquireQuantumMemory((*keys)->number_threads, in CreateMagickThreadKey()
105 if ((*keys)->values == (void *) NULL) in CreateMagickThreadKey()
106 *keys=RelinquishMagickMemory(*keys); in CreateMagickThreadKey()
108 (void) memset((*keys)->values,0,(*keys)->number_threads* in CreateMagickThreadKey()
110 (*keys)->destructor=destructor; in CreateMagickThreadKey()
112 return((*keys != (MagickThreadValue *) NULL) ? MagickTrue : MagickFalse); in CreateMagickThreadKey()
148 *keys; in DeleteMagickThreadKey()
153 keys=(MagickThreadValue *) key; in DeleteMagickThreadKey()
154 for (i=0; i < (ssize_t) keys->number_threads; i++) in DeleteMagickThreadKey()
155 if ((keys->destructor != (void *) NULL) && in DeleteMagickThreadKey()
156 (keys->values[i] != (void *) NULL)) in DeleteMagickThreadKey()
158 keys->destructor(keys->values[i]); in DeleteMagickThreadKey()
159 keys->values[i]=(void *) NULL; in DeleteMagickThreadKey()
161 keys=(MagickThreadValue *) RelinquishMagickMemory(keys); in DeleteMagickThreadKey()
199 *keys; in GetMagickThreadValue()
201 keys=(MagickThreadValue *) key; in GetMagickThreadValue()
202 return(keys->values[GetOpenMPThreadId()]); in GetMagickThreadValue()
243 *keys; in SetMagickThreadValue()
245 keys=(MagickThreadValue *) key; in SetMagickThreadValue()
246 keys->values[GetOpenMPThreadId()]=(void *) value; in SetMagickThreadValue()