diff options
author | Subv <subv2112@gmail.com> | 2017-07-21 06:52:50 +0200 |
---|---|---|
committer | Subv <subv2112@gmail.com> | 2017-08-22 16:30:55 +0200 |
commit | bca8916cea9c437d82509f8350fa3b858720f90e (patch) | |
tree | 68375d2bac3a42e64e95702d2edaf8e1825af061 /src/core/hle/lock.h | |
parent | Merge pull request #2833 from j-selby/single-header-json (diff) | |
download | yuzu-bca8916cea9c437d82509f8350fa3b858720f90e.tar yuzu-bca8916cea9c437d82509f8350fa3b858720f90e.tar.gz yuzu-bca8916cea9c437d82509f8350fa3b858720f90e.tar.bz2 yuzu-bca8916cea9c437d82509f8350fa3b858720f90e.tar.lz yuzu-bca8916cea9c437d82509f8350fa3b858720f90e.tar.xz yuzu-bca8916cea9c437d82509f8350fa3b858720f90e.tar.zst yuzu-bca8916cea9c437d82509f8350fa3b858720f90e.zip |
Diffstat (limited to 'src/core/hle/lock.h')
-rw-r--r-- | src/core/hle/lock.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/core/hle/lock.h b/src/core/hle/lock.h new file mode 100644 index 000000000..8265621e1 --- /dev/null +++ b/src/core/hle/lock.h @@ -0,0 +1,18 @@ +// Copyright 2017 Citra Emulator Project +// Licensed under GPLv2 or any later version +// Refer to the license.txt file included. + +#pragma once + +#include <mutex> + +namespace HLE { +/* + * Synchronizes access to the internal HLE kernel structures, it is acquired when a guest + * application thread performs a syscall. It should be acquired by any host threads that read or + * modify the HLE kernel state. Note: Any operation that directly or indirectly reads from or writes + * to the emulated memory is not protected by this mutex, and should be avoided in any threads other + * than the CPU thread. + */ +extern std::mutex g_hle_lock; +} // namespace HLE |