1
0
Fork 0
forked from suyu/suyu
suyu/src
David Marcec 19dc36ce06 Implement Time::GetSharedMemoryNativeHandle
This PR attempts to implement the shared memory provided by GetSharedMemoryNativeHandle. There is still more work to be done however that requires a rehaul of the current time module to handle clock contexts. This PR is mainly to get the basic functionality of the SharedMemory working and allow the use of addition to it whilst things get improved on.

Things to note:
Memory Barriers are used in the SharedMemory and a better solution would need to be done to implement this. Currently in this PR I’m faking the memory barriers as everything is sync and single threaded. They work by incrementing the counter and just populate the two data slots. On data reading, it will read the last added data.

Specific values in the shared memory would need to be updated periodically. This isn't included in this PR since we don't actively do this yet. In a later PR when time is refactored this should be done.

Finally, as we don't handle clock contexts. When time is refactored, we will need to update the shared memory for specific contexts. This PR does this already however since the contexts are all identical and not separated. We're just updating the same values for each context which in this case is empty.

Tiime:SetStandardUserSystemClockAutomaticCorrectionEnabled, Time:IsStandardUserSystemClockAutomaticCorrectionEnabled are also partially implemented in this PR. The reason the implementation is partial is because once again, a lack of clock contexts. This will be improved on in a future PR.

This PR closes issue #2556
2019-06-26 00:45:53 +10:00
..
audio_core Cleanup 2019-06-16 20:18:35 +10:00
common common/hex_util: Reserve std::string memory ahead of time 2019-06-12 17:54:11 -04:00
core Implement Time::GetSharedMemoryNativeHandle 2019-06-26 00:45:53 +10:00
input_common input_common/sdl/sdl_impl: Correct logging string in SDLState constructor 2019-06-03 16:56:47 -04:00
tests kernel: Differentiate kernel and user processes when picking ID 2019-06-10 00:28:33 -04:00
video_core Merge pull request #2579 from ReinUsesLisp/fix-aoffi-test 2019-06-21 15:28:55 -04:00
web_service general: Use deducation guides for std::lock_guard and std::unique_lock 2019-04-01 12:53:47 -04:00
yuzu Merge pull request #2546 from DarkLordZach/kips 2019-06-21 14:28:18 -04:00
yuzu_cmd Merge pull request #2482 from DarkLordZach/prepo 2019-06-21 14:05:18 -04:00
yuzu_tester yuzutest: Add minor comments 2019-06-10 00:31:54 -04:00
.clang-format
CMakeLists.txt yuzu_tester: Add project subdirectory 2019-06-10 00:03:11 -04:00