summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/client_session.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* kernel: Eliminate kernel global stateLioncash2018-08-291-2/+3
| | | | | | | | | | | | | | | | | | | | | | 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.
* hle: Integrate Domain handling into ServerSession.bunnei2018-01-251-1/+2
|
* hle: Remove Domain and SyncObject kernel objects.bunnei2018-01-251-2/+1
|
* Format: Run the new clang format on everythingJames Rowe2018-01-211-1/+1
|
* kernel: Add SyncObject primitive, use it for ClientSession.bunnei2017-12-291-8/+3
|
* Kernel/SVC: Pass the current thread as a parameter to ClientSession::SendSyncRequest.Subv2017-06-291-1/+3
|
* Kernel: Move HandleTable to a separate fileYuri Kunde Schlesner2017-05-301-2/+1
|
* Kernel/Sessions: Remove the ClientSession::Create function.Subv2017-05-221-7/+0
| | | | It is not meant to be used by anything other than CreateSessionPair.
* Kernel: Remove a now unused enum and variable regarding a session's status.Subv2017-05-151-7/+0
|
* Kernel: Use a Session object to keep track of the status of a Client/Server session pair.Subv2017-05-151-5/+6
| | | | Reduce the associated port's connection count when a ServerSession is destroyed.
* Fixed the codestyle to match our clang-format rules.Subv2016-12-141-5/+6
|
* Added a framework for partially handling Session disconnections.Subv2016-12-081-2/+9
| | | | | | Further implementation will happen in a future commit. Fixes a regression.
* KServerPorts now have an HLE handler "template", which is inherited by all ServerSessions created from it.Subv2016-12-051-9/+12
|
* Fixed the rebase mistakes.Subv2016-12-011-8/+9
|
* A bit of a redesign.Subv2016-12-011-4/+1
| | | | | | | Sessions and Ports are now detached from each other. HLE services are handled by means of a SessionRequestHandler class, Interface now inherits from this class. The File and Directory classes are no longer kernel objects, but SessionRequestHandlers instead, bound to a ServerSession when requested. File::OpenLinkFile now creates a new session pair and binds the File instance to it.
* IPC/HLE: Associate the ClientSessions with their parent port's HLE interface if it exists.Subv2016-12-011-0/+6
| | | | Pass the triggering ServerSession to the HLE command handler to differentiate which session caused the request.
* Kernel/IPC: Use Ports and Sessions as the fundamental building block of Inter Process Communication.Subv2016-12-011-0/+50
All handles obtained via srv::GetServiceHandle or svcConnectToPort are references to ClientSessions. Service modules will wait on the counterpart of those ClientSessions (Called ServerSessions) using svcReplyAndReceive or svcWaitSynchronization[1|N], and will be awoken when a SyncRequest is performed. HLE Interfaces are now ClientPorts which override the HandleSyncRequest virtual member function to perform command handling immediately.