summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/timer.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2019-02-01kernel: Remove the Timer classLioncash1-88/+0
A holdover from citra, the Horizon kernel on the switch has no prominent kernel object that functions as a timer. At least not to the degree of sophistication that this class provided. As such, this can be removed entirely. This class also wasn't used at all in any meaningful way within the core, so this was just code sitting around doing nothing. This also allows removing a few things from the main KernelCore class that allows it to use slightly less resources overall (though very minor and not anything really noticeable).
2019-01-30kernel/timer: Remove unnecessary WakeupAllWaitingThreads() overrideLioncash1-2/+0
This implementation just calls the base class variant of the function, so this isn't necessary.
2018-08-29kernel: Eliminate kernel global stateLioncash1-7/+6
As means to pave the way for getting rid of global state within core, This eliminates kernel global state by removing all globals. Instead this introduces a KernelCore class which acts as a kernel instance. This instance lives in the System class, which keeps its lifetime contained to the lifetime of the System class. This also forces the kernel types to actually interact with the main kernel instance itself instead of having transient kernel state placed all over several translation units, keeping everything together. It also has a nice consequence of making dependencies much more explicit. This also makes our initialization a tad bit more correct. Previously we were creating a kernel process before the actual kernel was initialized, which doesn't really make much sense. The KernelCore class itself follows the PImpl idiom, which allows keeping all the implementation details sealed away from everything else, which forces the use of the exposed API and allows us to avoid any unnecessary inclusions within the main kernel header.
2018-08-02kernel: Move object class to its own source filesLioncash1-1/+1
General moving to keep kernel object types separate from the direct kernel code. Also essentially a preliminary cleanup before eliminating global kernel state in the kernel code.
2018-07-26kernel/timer: Make data members private where applicableLioncash1-5/+17
Instead, we can just expose functions that return the queryable state instead of letting anything modify it.
2018-01-21Format: Run the new clang format on everythingJames Rowe1-1/+1
2017-05-30Kernel: Move WaitObject to a separate fileYuri Kunde Schlesner1-0/+1
Now that HandleTable doesn't directly depend on WaitObject anymore, this can be separated from the main kernel.h header.
2017-02-22Timers: Immediately signal the timer if it was started with an initial value of 0.Subv1-0/+8
2017-01-05Kernel: Implemented Pulse event and timers.Subv1-0/+2
Closes #1904
2017-01-04Kernel: Object ShouldWait and Acquire calls now take a thread as a parameter.Subv1-2/+2
This will be useful when implementing mutex priority inheritance.
2016-09-22move ResetType to kernel.hwwylele1-1/+0
2016-09-21Remove empty newlines in #include blocks.Emmanuel Gil Peyrot1-1/+0
This makes clang-format useful on those. Also add a bunch of forgotten transitive includes, which otherwise prevented compilation.
2016-09-18Sources: Run clang-format on everything.Emmanuel Gil Peyrot1-8/+14
2016-03-13svc: Move ResetType enum to the kernel event headerLioncash1-1/+1
2015-02-02Kernel: Stop creating useless Handles during object creationYuri Kunde Schlesner1-1/+1
They're finally unnecessary, and will stop cluttering the application's handle table.
2015-02-02Explicitly instantiate constructors/destructors for Kernel objectsYuri Kunde Schlesner1-1/+2
This should speed up compile times a bit, as well as enable more liberal use of forward declarations. (Due to SharedPtr not trying to emit the destructor anymore.)
2015-02-02Kernel: Use separate Handle tables for CoreTiming userdataYuri Kunde Schlesner1-0/+3
This is to support the removal of GetHandle soon
2015-01-30Kernel: Mark all appropriate kernel objects as "final"Yuri Kunde Schlesner1-1/+1
2015-01-30Kernel: Convert Timer to (mostly) not use HandlesYuri Kunde Schlesner1-28/+41
2015-01-20core: Fix a few docstringsLioncash1-1/+1
2015-01-09SVC: Implemented the Timer service calls.Subv1-0/+47