Lines Matching refs:resource_semaphore

75   (sizeof(resource_semaphore)/sizeof(*resource_semaphore))
143 *resource_semaphore[] = { variable
217 if (resource_semaphore[type] == (SemaphoreInfo *) NULL) in AcquireMagickResource()
218 ActivateSemaphoreInfo(&resource_semaphore[type]); in AcquireMagickResource()
219 LockSemaphoreInfo(resource_semaphore[type]); in AcquireMagickResource()
372 UnlockSemaphoreInfo(resource_semaphore[type]); in AcquireMagickResource()
584 if (resource_semaphore[FileResource] == (SemaphoreInfo *) NULL) in AcquireUniqueFileResource()
585 ActivateSemaphoreInfo(&resource_semaphore[FileResource]); in AcquireUniqueFileResource()
586 LockSemaphoreInfo(resource_semaphore[FileResource]); in AcquireUniqueFileResource()
589 UnlockSemaphoreInfo(resource_semaphore[FileResource]); in AcquireUniqueFileResource()
640 if (resource_semaphore[FileResource] == (SemaphoreInfo *) NULL) in AcquireUniqueFileResource()
641 ActivateSemaphoreInfo(&resource_semaphore[FileResource]); in AcquireUniqueFileResource()
642 LockSemaphoreInfo(resource_semaphore[FileResource]); in AcquireUniqueFileResource()
646 UnlockSemaphoreInfo(resource_semaphore[FileResource]); in AcquireUniqueFileResource()
688 if (resource_semaphore[type] == (SemaphoreInfo *) NULL) in GetMagickResource()
689 ActivateSemaphoreInfo(&resource_semaphore[type]); in GetMagickResource()
690 LockSemaphoreInfo(resource_semaphore[type]); in GetMagickResource()
763 UnlockSemaphoreInfo(resource_semaphore[type]); in GetMagickResource()
815 if (resource_semaphore[type] == (SemaphoreInfo *) NULL) in GetMagickResourceLimit()
816 ActivateSemaphoreInfo(&resource_semaphore[type]); in GetMagickResourceLimit()
817 LockSemaphoreInfo(resource_semaphore[type]); in GetMagickResourceLimit()
848 UnlockSemaphoreInfo(resource_semaphore[type]); in GetMagickResourceLimit()
894 if (resource_semaphore[FileResource] == (SemaphoreInfo *) NULL) in ListMagickResourceInfo()
895 ActivateSemaphoreInfo(&resource_semaphore[FileResource]); in ListMagickResourceInfo()
896 LockSemaphoreInfo(resource_semaphore[FileResource]); in ListMagickResourceInfo()
935 UnlockSemaphoreInfo(resource_semaphore[FileResource]); in ListMagickResourceInfo()
985 if (resource_semaphore[type] == (SemaphoreInfo *) NULL) in RelinquishMagickResource()
986 ActivateSemaphoreInfo(&resource_semaphore[type]); in RelinquishMagickResource()
987 LockSemaphoreInfo(resource_semaphore[type]); in RelinquishMagickResource()
1052 UnlockSemaphoreInfo(resource_semaphore[type]); in RelinquishMagickResource()
1109 if (resource_semaphore[FileResource] == (SemaphoreInfo *) NULL) in RelinquishUniqueFileResource()
1110 ActivateSemaphoreInfo(&resource_semaphore[FileResource]); in RelinquishUniqueFileResource()
1111 LockSemaphoreInfo(resource_semaphore[FileResource]); in RelinquishUniqueFileResource()
1114 UnlockSemaphoreInfo(resource_semaphore[FileResource]); in RelinquishUniqueFileResource()
1163 if (resource_semaphore[i] == (SemaphoreInfo *) NULL) in ResourceComponentGenesis()
1164 resource_semaphore[i]=AcquireSemaphoreInfo(); in ResourceComponentGenesis()
1315 if (resource_semaphore[i] == (SemaphoreInfo *) NULL) in ResourceComponentTerminus()
1316 resource_semaphore[i]=AcquireSemaphoreInfo(); in ResourceComponentTerminus()
1317 LockSemaphoreInfo(resource_semaphore[FileResource]); in ResourceComponentTerminus()
1322 UnlockSemaphoreInfo(resource_semaphore[FileResource]); in ResourceComponentTerminus()
1324 RelinquishSemaphoreInfo(&resource_semaphore[i]); in ResourceComponentTerminus()
1371 if (resource_semaphore[type] == (SemaphoreInfo *) NULL) in SetMagickResourceLimit()
1372 ActivateSemaphoreInfo(&resource_semaphore[type]); in SetMagickResourceLimit()
1373 LockSemaphoreInfo(resource_semaphore[type]); in SetMagickResourceLimit()
1514 UnlockSemaphoreInfo(resource_semaphore[type]); in SetMagickResourceLimit()