Commit Graph

25 Commits (04daefa4887fac9f90d873b5ae4b87548eafb2f0)

Author SHA1 Message Date
bunnei 04daefa488 core: hle: kernel: k_thread: Add KScopedDisableDispatch.
bunnei 0c8594b225
Revert "kernel: Various improvements to scheduler"
bunnei aef0ca6f0d core: hle: kernel: Disable dispatch count tracking on single core.
- This would have limited value, and would be a mess to handle properly.
bunnei 5060a97210 core: hle: kernel: k_thread: Mark KScopedDisableDispatch as nodiscard.
bunnei 01af2f4162 core: hle: kernel: k_thread: Add KScopedDisableDispatch.
Morph 12c1766997 general: Replace RESULT_SUCCESS with ResultSuccess
Transition to PascalCase for result names.
Lioncash 7b2917b4e1 kernel: Add missing override specifiers
Over the course of the kernel refactoring a tiny bit of missing
overrides slipped through review, so we can add these.

While we're at it, we can remove redundant virtual keywords where
applicable as well.
Lioncash 2f62bae9e3 kernel: Eliminate variable shadowing
Now that the large kernel refactor is merged, we can eliminate the
remaining variable shadowing cases.
bunnei 2a7eff57a8 hle: kernel: Rename Process to KProcess.
bunnei bf380b8584 hle: kernel: Remove deprecated Object class.
bunnei 479bd50b96 hle: kernel: Migrate KThread to KAutoObject.
Lioncash 0fb3773924 k_thread: Remove [[nodiscard]] attribute from ClearWaitCancelled()
This function has a void return value, so this attribute doesn't apply
to it.
bunnei 5872561077 hle: kernel: Migrate some code from Common::SpinLock to KSpinLock.
bunnei 47af34003b hle: kernel: KThread: Rework dummy threads & fix memory leak.
- Dummy threads are created on thread local storage for all host threads.
- Fixes a leak by removing creation of fibers, which are not applicable here.
bunnei a5ab85ac37
Revert "core: Switch to unique_ptr for usage of Common::Fiber."
bunnei 51fb0a6f96 core: Switch to unique_ptr for usage of Common::Fiber.
- With using unique_ptr instead of shared_ptr, we have more explicit ownership of the context.
- Fixes a memory leak due to circular reference of the shared pointer.
bunnei 10738839ad yuzu: debugger: Ignore HLE threads.
bunnei ca78f77827 hle: kernel: KScheduler: Introduce thread context_guard.
bunnei cdd14b03e5 hle: kernel: Recode implementation of KThread to be more accurate.
bunnei 4dbf3f4880 hle: kernel: KThread: Clean up thread priorities.
bunnei 1e55498110 hle: kernel: KThread: Reorganize thread priority defaults.
bunnei 0530292b97 hle: kernel: KThread: Fix ThreadType definition.
bunnei 4782985013 hle: kernel: Move single core "phantom mode" out of KThread.
- This is a workaround that does not belong in a kernel primitive.
bunnei eea346ba8e hle: kernel: KThread: Remove thread types that do not exist.
bunnei c0d3aef28c core: hle: kernel: Rename Thread to KThread.