/*
- Copyright 1999-2011 ImageMagick Studio LLC, a non-profit organization
+ Copyright 1999-2012 ImageMagick Studio LLC, a non-profit organization
dedicated to making software imaging solutions freely available.
You may not use this file except in compliance with the License.
i;
assert(random_info != (RandomInfo **) NULL);
- for (i=0; i < (ssize_t) GetOpenMPMaximumThreads(); i++)
+ for (i=0; i < (ssize_t) GetMagickResourceLimit(ThreadResource); i++)
if (random_info[i] != (RandomInfo *) NULL)
random_info[i]=DestroyRandomInfo(random_info[i]);
- return((RandomInfo **) RelinquishAlignedMemory(random_info));
+ return((RandomInfo **) RelinquishMagickMemory(random_info));
}
static inline RandomInfo **AcquireRandomInfoThreadSet(void)
size_t
number_threads;
- number_threads=GetOpenMPMaximumThreads();
- random_info=(RandomInfo **) AcquireAlignedMemory(number_threads,
+ number_threads=(size_t) GetMagickResourceLimit(ThreadResource);
+ random_info=(RandomInfo **) AcquireQuantumMemory(number_threads,
sizeof(*random_info));
if (random_info == (RandomInfo **) NULL)
return((RandomInfo **) NULL);