llcoremutex.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /**
  2. * @file llcoremutex.h
  3. * @brief mutex type abstraction
  4. *
  5. * $LicenseInfo:firstyear=2012&license=viewerlgpl$
  6. * Second Life Viewer Source Code
  7. * Copyright (C) 2012, Linden Research, Inc.
  8. *
  9. * This library is free software; you can redistribute it and/or
  10. * modify it under the terms of the GNU Lesser General Public
  11. * License as published by the Free Software Foundation;
  12. * version 2.1 of the License only.
  13. *
  14. * This library is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  17. * Lesser General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU Lesser General Public
  20. * License along with this library; if not, write to the Free Software
  21. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  22. *
  23. * Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
  24. * $/LicenseInfo$
  25. */
  26. #ifndef LLCOREINT_MUTEX_H_
  27. #define LLCOREINT_MUTEX_H_
  28. // For LL_MUTEX_TYPE, LL_COND_TYPE and LL_UNIQ_LOCK_TYPE:
  29. #include "llmutex.h"
  30. namespace LLCoreInt
  31. {
  32. // MUTEX TYPES
  33. // Unique mutex type
  34. typedef LL_MUTEX_TYPE HttpMutex;
  35. // CONDITION VARIABLES
  36. // Standard condition variable
  37. typedef LL_COND_TYPE HttpConditionVariable;
  38. // LOCKS AND FENCES
  39. // Scoped unique lock
  40. typedef LL_UNIQ_LOCK_TYPE HttpScopedLock;
  41. }
  42. #endif // LLCOREINT_MUTEX_H