summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/server_session.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Kernel: Refactor synchronization to better match REFernando Sahmkow2020-02-111-0/+2
|
* Kernel: Change WaitObject to Synchronization object. In order to better reflect RE.Fernando Sahmkow2020-02-111-2/+2
|
* kernel: Implement a more accurate IPC dispatch.bunnei2019-11-281-26/+23
|
* core: Prepare various classes for memory read/write migrationLioncash2019-11-271-1/+8
| | | | | | | | | | Amends a few interfaces to be able to handle the migration over to the new Memory class by passing the class by reference as a function parameter where necessary. Notably, within the filesystem services, this eliminates two ReadBlock() calls by using the helper functions of HLERequestContext to do that for us.
* kernel: Replace usage of boost::intrusive_ptr with std::shared_ptr for kernel objects. (#3154)bunnei2019-11-251-10/+10
| | | | | | * 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.
* kernel: Make handle type declarations constexprLioncash2019-04-111-1/+1
| | | | | | | Some objects declare their handle type as const, while others declare it as constexpr. This makes the const ones constexpr for consistency, and prevent unexpected compilation errors if these happen to be attempted to be used within a constexpr context.
* kernel/server_session: Return a std::pair from CreateSessionPair()Lioncash2019-04-061-1/+2
| | | | | | Keeps the return type consistent with the function name. While we're at it, we can also reduce the amount of boilerplate involved with handling these by using structured bindings.
* Merge pull request #2325 from lioncash/namebunnei2019-04-061-0/+4
|\ | | | | kernel/server_session: Provide a GetName() override
| * kernel/server_session: Provide a GetName() overrideLioncash2019-04-031-0/+4
| | | | | | | | | | | | Given server sessions can be given a name, we should allow retrieving it instead of using the default implementation of GetName(), which would just return "[UNKNOWN KERNEL OBJECT]".
* | 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/server_session: Make data members privateLioncash2019-03-061-15/+38
| | | | | Makes it much nicer to locally reason about server session behavior, as part of its functionality isn't placed around other classes.
* core/kernel: Remove unnecessary inclusionsLioncash2019-01-011-1/+0
| | | | Gets rid of a few unnecessary header dependencies in some source files.
* kernel: Eliminate kernel global stateLioncash2018-08-291-5/+9
| | | | | | | | | | | | | | | | | | | | | | 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/server_session: Add IsSession() member functionLioncash2018-08-151-1/+6
| | | | | | Allows querying the inverse of IsDomain() to make things more readable. This will likely also be usable in the event of implementing ConvertDomainToSession().
* 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: Remove unnecessary includesLioncash2018-07-311-2/+2
| | | | | Removes unnecessary direct dependencies in some headers and also gets rid of indirect dependencies that were being relied on to be included.
* Kernel/IPC: Add a small delay after each SyncRequest to prevent thread starvation.Subv2018-02-181-9/+5
| | | | | | | | Ported from citra PR #3091 The delay specified here is from a Nintendo 3DS, and should be measured in a Nintendo Switch. This change is enough to prevent Puyo Puyo Tetris's main thread starvation.
* hle: Integrate Domain handling into ServerSession.bunnei2018-01-251-1/+17
|
* Format: Run the new clang format on everythingJames Rowe2018-01-211-1/+1
|
* kernel: Fix implementation of ConvertSessionToDomain.bunnei2017-12-291-10/+0
|
* hle: Implement ConvertSessionToDomain, various cleanups.bunnei2017-10-151-0/+10
|
* Kernel/ServerSession: Keep track of which threads have issued sync requests.Subv2017-06-251-2/+12
|
* Session: Remove/add some forward declarationsYuri Kunde Schlesner2017-06-081-1/+1
|
* Kernel: Add a dedicated SetHleHandler method to ServerPort/ServerSessionYuri Kunde Schlesner2017-06-061-8/+12
| | | | | | 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.
* HLE: Move SessionRequestHandler from Service:: to Kernel::Yuri Kunde Schlesner2017-06-061-5/+4
| | | | | 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.
* Kernel: Move HandleTable to a separate fileYuri Kunde Schlesner2017-05-301-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.
* Kernel: Use a Session object to keep track of the status of a Client/Server session pair.Subv2017-05-151-3/+9
| | | | Reduce the associated port's connection count when a ServerSession is destroyed.
* Doxygen: Amend minor issues (#2593)Mat M2017-02-271-1/+2
| | | | | | | | | Corrects a few issues with regards to Doxygen documentation, for example: - Incorrect parameter referencing. - Missing @param tags. - Typos in @param tags. and a few minor other issues.
* Core: Remove unnecessary include in thread.hYuri Kunde Schlesner2017-02-271-0/+1
|
* 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.
* Fixed the codestyle to match our clang-format rules.Subv2016-12-141-10/+15
|
* Moved the HLE command buffer translation task to ServerSession instead of the HLE handler superclass.Subv2016-12-091-0/+10
|
* Use std::move where appropriate.Subv2016-12-081-1/+3
|
* KServerPorts now have an HLE handler "template", which is inherited by all ServerSessions created from it.Subv2016-12-051-15/+15
|
* Fixed the rebase mistakes.Subv2016-12-011-3/+6
|
* A bit of a redesign.Subv2016-12-011-159/+8
| | | | | | | 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.
* fixup! Kernel/IPC: Use Ports and Sessions as the fundamental building block of Inter Process Communication.Subv2016-12-011-1/+1
|
* Kernel/IPC: Use Ports and Sessions as the fundamental building block of Inter Process Communication.Subv2016-12-011-0/+225
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.