summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/timer.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* kernel: Eliminate kernel global stateLioncash2018-08-291-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.
* kernel: Move object class to its own source filesLioncash2018-08-021-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.
* kernel/timer: Make data members private where applicableLioncash2018-07-261-5/+17
| | | | | Instead, we can just expose functions that return the queryable state instead of letting anything modify it.
* Format: Run the new clang format on everythingJames Rowe2018-01-211-1/+1
|
* Kernel: Move WaitObject to a separate fileYuri Kunde Schlesner2017-05-301-0/+1
| | | | | Now that HandleTable doesn't directly depend on WaitObject anymore, this can be separated from the main kernel.h header.
* Timers: Immediately signal the timer if it was started with an initial value of 0.Subv2017-02-221-0/+8
|
* Merge pull request #2397 from Subv/pulsebunnei2017-01-101-0/+2
|\ | | | | Kernel: Implemented Pulse event and timers.
| * Kernel: Implemented Pulse event and timers.Subv2017-01-051-0/+2
| | | | | | | | Closes #1904
* | Kernel: Object ShouldWait and Acquire calls now take a thread as a parameter.Subv2017-01-041-2/+2
|/ | | | This will be useful when implementing mutex priority inheritance.
* move ResetType to kernel.hwwylele2016-09-221-1/+0
|
* Remove empty newlines in #include blocks.Emmanuel Gil Peyrot2016-09-211-1/+0
| | | | | | | This makes clang-format useful on those. Also add a bunch of forgotten transitive includes, which otherwise prevented compilation.
* Sources: Run clang-format on everything.Emmanuel Gil Peyrot2016-09-181-8/+14
|
* svc: Move ResetType enum to the kernel event headerLioncash2016-03-131-1/+1
|
* Kernel: Stop creating useless Handles during object creationYuri Kunde Schlesner2015-02-021-1/+1
| | | | | They're finally unnecessary, and will stop cluttering the application's handle table.
* Explicitly instantiate constructors/destructors for Kernel objectsYuri Kunde Schlesner2015-02-021-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.)
* Kernel: Use separate Handle tables for CoreTiming userdataYuri Kunde Schlesner2015-02-021-0/+3
| | | | This is to support the removal of GetHandle soon
* Kernel: Mark all appropriate kernel objects as "final"Yuri Kunde Schlesner2015-01-301-1/+1
|
* Kernel: Convert Timer to (mostly) not use HandlesYuri Kunde Schlesner2015-01-301-28/+41
|
* core: Fix a few docstringsLioncash2015-01-201-1/+1
|
* SVC: Implemented the Timer service calls.Subv2015-01-091-0/+47