yuzu/src/core/hle
ReinUsesLisp b9a9b83bee kernel: Implement host thread register methods without locking
Locks on GetCurrentHostThreadID were causing performance issues
according to Visual Studio's profiler. It was consuming twice the time
as arm_interface.Run(). The cost was not in the function itself but in
the lockinig it required.

Reimplement these functions using atomics and static storage instead of
an unordered_map. This is a side effect to avoid locking and using linked
lists for reads.

Replace unordered_map with a linear search.
2020-10-13 18:00:25 -03:00
..
kernel kernel: Implement host thread register methods without locking 2020-10-13 18:00:25 -03:00
service Merge pull request #4736 from Morph1984/home-button-input-protection-stub 2020-10-07 14:54:05 -07:00
ipc_helpers.h ipc_helpers: Only allow trivially copyable objects with PushRaw() and PopRaw() 2020-08-05 14:08:28 -04:00
ipc.h common_func: Use std::array for INSERT_PADDING_* macros. 2019-11-03 22:22:41 -05:00
lock.cpp Fix build on macOS and linux 2018-01-13 22:38:52 +00:00
lock.h Use recursive_mutex instead of mutex to fix #2902 2017-08-29 20:39:55 +12:00
result.h core: Resolve several -Wextra-semi warnings 2020-08-14 09:09:20 -04:00