Mutex.inc 1013 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. //===- llvm/Support/Unix/Mutex.inc - Unix Mutex Implementation ---*- C++ -*-===//
  2. //
  3. // The LLVM Compiler Infrastructure
  4. //
  5. // This file is distributed under the University of Illinois Open Source
  6. // License. See LICENSE.TXT for details.
  7. //
  8. //===----------------------------------------------------------------------===//
  9. //
  10. // This file implements the Unix specific (non-pthread) Mutex class.
  11. //
  12. //===----------------------------------------------------------------------===//
  13. //===----------------------------------------------------------------------===//
  14. //=== WARNING: Implementation here must contain only generic UNIX code that
  15. //=== is guaranteed to work on *all* UNIX variants.
  16. //===----------------------------------------------------------------------===//
  17. namespace llvm
  18. {
  19. using namespace sys;
  20. MutexImpl::MutexImpl( bool recursive)
  21. {
  22. }
  23. MutexImpl::~MutexImpl()
  24. {
  25. }
  26. bool
  27. MutexImpl::release()
  28. {
  29. return true;
  30. }
  31. bool
  32. MutexImpl::tryacquire( void )
  33. {
  34. return true;
  35. }
  36. }