summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/wait_object.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* kernel/wait_object: Make GetHighestPriorityReadyThread() a const member functionLioncash2019-04-171-1/+1
| | | | | This doesn't actually modify internal state of a wait object, so it can be const qualified.
* kernel/wait_object: Make ShouldWait() take thread members by pointer-to-constLioncash2019-04-021-1/+1
| | | | | Given this is intended as a querying function, it doesn't make sense to allow the implementer to modify the state of the given thread.
* kernel/wait_object: Devirtualize functions related to manipulating the thread list directlyLioncash2019-01-301-3/+3
| | | | | | | | | No inheritors of the WaitObject class actually make use of their own implementations of these functions, so they can be made non-virtual. It's also kind of sketchy to allow overriding how the threads get added to the list anyways, given the kernel itself on the actual hardware doesn't seem to customize based off this.
* core/kernel: Remove unnecessary inclusionsLioncash2019-01-011-1/+0
| | | | Gets rid of a few unnecessary header dependencies in some source files.
* kernel/object: Remove unnecessary std::move from DynamicObjectCast()Lioncash2018-09-281-1/+1
| | | | | | | | | boost::static_pointer_cast for boost::intrusive_ptr (what SharedPtr is), takes its parameter by const reference. Given that, it means that this std::move doesn't actually do anything other than obscure what the function's actual behavior is, so we can remove this. To clarify, this would only do something if the parameter was either taking its argument by value, by non-const ref, or by rvalue-reference.
* kernel: Eliminate kernel global stateLioncash2018-08-291-0/+4
| | | | | | | | | | | | | | | | | | | | | | 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.
* wait_object: Refactor to allow waking up a single thread.bunnei2018-01-071-0/+6
|
* Kernel: Move WaitObject to a separate fileYuri Kunde Schlesner2017-05-301-0/+67
Now that HandleTable doesn't directly depend on WaitObject anymore, this can be separated from the main kernel.h header.