mutex.h 658 B

12345678910111213141516171819202122232425262728
  1. // Copyright 2014 Citra Emulator Project
  2. // Licensed under GPLv2
  3. // Refer to the license.txt file included.
  4. #pragma once
  5. #include "common/common_types.h"
  6. #include "core/hle/kernel/kernel.h"
  7. namespace Kernel {
  8. /**
  9. * Releases a mutex
  10. * @param handle Handle to mutex to release
  11. * @return Result of operation, 0 on success, otherwise error code
  12. */
  13. Result ReleaseMutex(Handle handle);
  14. /**
  15. * Creates a mutex
  16. * @param handle Reference to handle for the newly created mutex
  17. * @param initial_locked Specifies if the mutex should be locked initially
  18. * @return Handle to newly created object
  19. */
  20. Handle CreateMutex(bool initial_locked);
  21. } // namespace