diff options
author | Michael Scire <SciresM@gmail.com> | 2018-06-21 08:49:43 +0200 |
---|---|---|
committer | Michael Scire <SciresM@gmail.com> | 2018-06-21 08:49:43 +0200 |
commit | 7e191dccc184ae85ce5ade2bca913ab331002481 (patch) | |
tree | 184b0444e9d0cd3bfaea3ebf8c2742802753f58b /src/core/hle/kernel/address_arbiter.cpp | |
parent | Merge pull request #576 from Subv/warnings1 (diff) | |
download | yuzu-7e191dccc184ae85ce5ade2bca913ab331002481.tar yuzu-7e191dccc184ae85ce5ade2bca913ab331002481.tar.gz yuzu-7e191dccc184ae85ce5ade2bca913ab331002481.tar.bz2 yuzu-7e191dccc184ae85ce5ade2bca913ab331002481.tar.lz yuzu-7e191dccc184ae85ce5ade2bca913ab331002481.tar.xz yuzu-7e191dccc184ae85ce5ade2bca913ab331002481.tar.zst yuzu-7e191dccc184ae85ce5ade2bca913ab331002481.zip |
Diffstat (limited to 'src/core/hle/kernel/address_arbiter.cpp')
-rw-r--r-- | src/core/hle/kernel/address_arbiter.cpp | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/src/core/hle/kernel/address_arbiter.cpp b/src/core/hle/kernel/address_arbiter.cpp new file mode 100644 index 000000000..cfd2c1590 --- /dev/null +++ b/src/core/hle/kernel/address_arbiter.cpp @@ -0,0 +1,46 @@ +// Copyright 2018 yuzu emulator team +// Licensed under GPLv2 or any later version +// Refer to the license.txt file included. + +#include "common/assert.h" +#include "common/common_funcs.h" +#include "common/common_types.h" +#include "core/hle/kernel/kernel.h" +#include "core/hle/kernel/process.h" +#include "core/hle/kernel/thread.h" +#include "core/memory.h" + +namespace Kernel { + namespace AddressArbiter { + + // Signals an address being waited on. + ResultCode SignalToAddress(VAddr address, s32 value, s32 num_to_wake) { + // TODO + return RESULT_SUCCESS; + } + + // Signals an address being waited on and increments its value if equal to the value argument. + ResultCode IncrementAndSignalToAddressIfEqual(VAddr address, s32 value, s32 num_to_wake) { + // TODO + return RESULT_SUCCESS; + } + + // Signals an address being waited on and modifies its value based on waiting thread count if equal to the value argument. + ResultCode ModifyByWaitingCountAndSignalToAddressIfEqual(VAddr address, s32 value, s32 num_to_wake) { + // TODO + return RESULT_SUCCESS; + } + + // Waits on an address if the value passed is less than the argument value, optionally decrementing. + ResultCode WaitForAddressIfLessThan(VAddr address, s32 value, s64 timeout, bool should_decrement) { + // TODO + return RESULT_SUCCESS; + } + + // Waits on an address if the value passed is equal to the argument value. + ResultCode WaitForAddressIfEqual(VAddr address, s32 value, s64 timeout) { + // TODO + return RESULT_SUCCESS; + } + } // namespace AddressArbiter +} // namespace Kernel
\ No newline at end of file |