semaphore.inc 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. {
  2. Copyright 1999-2005 ImageMagick Studio LLC, a non-profit organization
  3. dedicated to making software imaging solutions freely available.
  4. You may not use this file except in compliance with the License.
  5. obtain a copy of the License at
  6. http://www.imagemagick.org/script/license.php
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. ImageMagick methods to lock and unlock semaphores.
  13. }
  14. #ifndef _MAGICK_SEMAPHORE_H
  15. #define _MAGICK_SEMAPHORE_H
  16. #endif
  17. typedef struct SemaphoreInfo
  18. SemaphoreInfo;
  19. extern MagickExport MagickBooleanType
  20. LockSemaphoreInfo(SemaphoreInfo *),
  21. UnlockSemaphoreInfo(SemaphoreInfo *);
  22. extern MagickExport SemaphoreInfo
  23. *AllocateSemaphoreInfo(void),
  24. *DestroySemaphoreInfo(SemaphoreInfo *);
  25. extern MagickExport void
  26. AcquireSemaphoreInfo(SemaphoreInfo **),
  27. DestroySemaphore(void),
  28. InitializeSemaphore(void),
  29. RelinquishSemaphoreInfo(SemaphoreInfo *);