summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/synchronization_object.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-01-11core: hle: kernel: Update KSynchronizationObject.bunnei1-77/+0
2020-11-29hle: kernel: SynchronizationObject: Use atomic_bool for is_signaled.bunnei1-1/+2
2020-06-27General: Cleanup legacy code.Fernando Sahmkow1-15/+0
2020-06-27SVC: Correct WaitSynchronization, WaitProcessWideKey, SignalProcessWideKey.Fernando Sahmkow1-0/+2
2020-06-27SVC: Correct SignalEvent, ClearEvent, ResetSignal, WaitSynchronization, CancelSynchronization, ArbitrateLockFernando Sahmkow1-2/+3
2020-02-11Kernel: Refactor synchronization to better match REFernando Sahmkow1-0/+10
2020-02-11Kernel: Change WaitObject to Synchronization object. In order to better reflect RE.Fernando Sahmkow1-6/+7
2019-12-08kernel: Remove unnecessary includesLioncash1-1/+2
Over the course of the changes to the kernel code, a few includes are no longer necessary, particularly with the change over to std::shared_ptr from Boost's intrusive_ptr.
2019-11-25kernel: Replace usage of boost::intrusive_ptr with std::shared_ptr for kernel objects. (#3154)bunnei1-8/+8
* kernel: Replace usage of boost::intrusive_ptr with std::shared_ptr for kernel objects. - See https://github.com/citra-emu/citra/pull/4710 for details.
2019-04-17kernel/wait_object: Make GetHighestPriorityReadyThread() a const member functionLioncash1-1/+1
This doesn't actually modify internal state of a wait object, so it can be const qualified.
2019-04-02kernel/wait_object: Make ShouldWait() take thread members by pointer-to-constLioncash1-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.
2019-01-30kernel/wait_object: Devirtualize functions related to manipulating the thread list directlyLioncash1-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.
2019-01-01core/kernel: Remove unnecessary inclusionsLioncash1-1/+0
Gets rid of a few unnecessary header dependencies in some source files.
2018-09-28kernel/object: Remove unnecessary std::move from DynamicObjectCast()Lioncash1-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.
2018-08-29kernel: Eliminate kernel global stateLioncash1-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.
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-01-07wait_object: Refactor to allow waking up a single thread.bunnei1-0/+6
2017-05-30Kernel: Move WaitObject to a separate fileYuri Kunde Schlesner1-0/+67
Now that HandleTable doesn't directly depend on WaitObject anymore, this can be separated from the main kernel.h header.