小组成员:10215300402-朱维清 & 10222140408 谷杰
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
1.3 KiB

  1. // Copyright (c) 2012 The LevelDB Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file. See the AUTHORS file for names of contributors.
  4. #ifndef STORAGE_LEVELDB_PORT_THREAD_ANNOTATIONS_H
  5. // Some environments provide custom macros to aid in static thread-safety
  6. // analysis. Provide empty definitions of such macros unless they are already
  7. // defined.
  8. #ifndef EXCLUSIVE_LOCKS_REQUIRED
  9. #define EXCLUSIVE_LOCKS_REQUIRED(...)
  10. #endif
  11. #ifndef SHARED_LOCKS_REQUIRED
  12. #define SHARED_LOCKS_REQUIRED(...)
  13. #endif
  14. #ifndef LOCKS_EXCLUDED
  15. #define LOCKS_EXCLUDED(...)
  16. #endif
  17. #ifndef LOCK_RETURNED
  18. #define LOCK_RETURNED(x)
  19. #endif
  20. #ifndef LOCKABLE
  21. #define LOCKABLE
  22. #endif
  23. #ifndef SCOPED_LOCKABLE
  24. #define SCOPED_LOCKABLE
  25. #endif
  26. #ifndef EXCLUSIVE_LOCK_FUNCTION
  27. #define EXCLUSIVE_LOCK_FUNCTION(...)
  28. #endif
  29. #ifndef SHARED_LOCK_FUNCTION
  30. #define SHARED_LOCK_FUNCTION(...)
  31. #endif
  32. #ifndef EXCLUSIVE_TRYLOCK_FUNCTION
  33. #define EXCLUSIVE_TRYLOCK_FUNCTION(...)
  34. #endif
  35. #ifndef SHARED_TRYLOCK_FUNCTION
  36. #define SHARED_TRYLOCK_FUNCTION(...)
  37. #endif
  38. #ifndef UNLOCK_FUNCTION
  39. #define UNLOCK_FUNCTION(...)
  40. #endif
  41. #ifndef NO_THREAD_SAFETY_ANALYSIS
  42. #define NO_THREAD_SAFETY_ANALYSIS
  43. #endif
  44. #endif // STORAGE_LEVELDB_PORT_THREAD_ANNOTATIONS_H