summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/k_server_port.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2022-04-23general: Convert source file copyright comments over to SPDXMorph1-3/+2
This formats all copyright comments according to SPDX formatting guidelines. Additionally, this resolves the remaining GPLv2 only licensed files by relicensing them to GPLv2.0-or-later.
2022-04-08hle: kernel: Unify and integrate reference tracking for KServerPort/KServerSession.bunnei1-0/+3
- These are not managed elsewhere, and need to be tracked and closed on emulation shutdown.
2022-04-08hle: kernel: k_server_port: Release ref-counted host emulation members on Destroy.bunnei1-0/+3
2021-11-04core: Remove unused includesameerj1-1/+0
2021-06-07hle: kernel: KAutoObjectWithListContainer: Use boost::instrusive::rbtree.bunnei1-2/+2
- Fixes some crashes introduced by our common intrusive red/black tree impl.
2021-05-08kernel: Eliminate variable shadowingLioncash1-1/+1
Now that the large kernel refactor is merged, we can eliminate the remaining variable shadowing cases.
2021-05-06hle: kernel: Remove deprecated Object class.bunnei1-1/+0
2021-05-06hle: kernel: Migrate KPort, KClientPort, and KServerPort to KAutoObject.bunnei1-27/+67
2021-05-06hle: kernel: Migrate KServerPort to KAutoObject.bunnei1-10/+20
2021-05-06hle: kernel: Migrate KClientPort to KAutoObject.bunnei1-7/+8
2021-05-06hle: kernel: Migrate KSession, KClientSession, and KServerSession to KAutoObject.bunnei1-5/+5
2021-02-13kernel: Unify result codes (#5890)Chloe1-2/+2
* kernel: Unify result codes Drop the usage of ERR_NAME convention in kernel for ResultName. Removed seperation between svc_results.h & errors.h as we mainly include both most of the time anyways. * oops * rename errors to svc_results
2021-01-29core: hle: kernel: Rename Thread to KThread.bunnei1-1/+1
2021-01-11core: hle: kernel: Update KSynchronizationObject.bunnei1-10/+4
2020-02-11Kernel: Refactor synchronization to better match REFernando Sahmkow1-0/+4
2020-02-11Kernel: Change WaitObject to Synchronization object. In order to better reflect RE.Fernando Sahmkow1-1/+1
2019-11-25kernel: Replace usage of boost::intrusive_ptr with std::shared_ptr for kernel objects. (#3154)bunnei1-4/+4
* 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-06kernel/server_port: Return a std::pair from CreatePortPair()Lioncash1-4/+3
Returns the same type that the function name describes.
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-03-11kernel/server_port: Make data members privateLioncash1-0/+4
With this, all kernel objects finally have all of their data members behind an interface, making it nicer to reason about interactions with other code (as external code no longer has the freedom to totally alter internals and potentially messing up invariants).
2018-10-24kernel/server_port: Simplify emptiness check within ShouldWait()Lioncash1-1/+1
2018-10-24kernel/server_port: Change error case return value in Accept() to ERR_NOT_FOUNDLioncash1-1/+1
This is what the kernel does in this instance.
2018-08-29kernel: Eliminate kernel global stateLioncash1-5/+5
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-21Format: Run the new clang format on everythingJames Rowe1-1/+1
2017-06-23Kernel: Implement AcceptSession SVCYuri Kunde Schlesner1-0/+12
2017-06-06Kernel: Add a dedicated SetHleHandler method to ServerPort/ServerSessionYuri Kunde Schlesner1-2/+1
This allows attaching a HLE handle to a ServerPort at any point after it is created, allowing port/session creation to be generic between HLE and regular services.
2017-06-06HLE: Move SessionRequestHandler from Service:: to Kernel::Yuri Kunde Schlesner1-2/+1
Most of the code that works with this is or will be in the kernel, so it's a more appropriate place for it to be.
2017-01-04Kernel: Object ShouldWait and Acquire calls now take a thread as a parameter.Subv1-3/+3
This will be useful when implementing mutex priority inheritance.
2016-12-14Fixed the codestyle to match our clang-format rules.Subv1-1/+2
2016-12-08Use std::move where appropriate.Subv1-1/+1
2016-12-05KServerPorts now have an HLE handler "template", which is inherited by all ServerSessions created from it.Subv1-1/+2
2016-09-21Use negative priorities to avoid special-casing the self-includeYuri Kunde Schlesner1-1/+1
2016-09-21Remove empty newlines in #include blocks.Emmanuel Gil Peyrot1-3/+1
This makes clang-format useful on those. Also add a bunch of forgotten transitive includes, which otherwise prevented compilation.
2016-09-19Manually tweak source formatting and then re-run clang-formatYuri Kunde Schlesner1-6/+5
2016-09-18Sources: Run clang-format on everything.Emmanuel Gil Peyrot1-3/+6
2016-06-11Kernel/SVC: Implemented svcCreatePort.Subv1-0/+3
2016-06-05Kernel: Added ClientPort and ServerPort classes.Subv1-0/+38
This is part of an ongoing effort to implement support for multiple processes.