hle: service: Add option for service interfaces to create or use the default thread.

This commit is contained in:
bunnei 2022-03-30 21:13:53 -07:00 committed by Morph
parent 60f2fe3b48
commit 75e39568a0
5 changed files with 29 additions and 11 deletions

View file

@ -33,6 +33,11 @@ namespace Service {
class ServiceFrameworkBase;
}
enum class ServiceThreadType {
Default,
CreateNew,
};
namespace Kernel {
class Domain;
@ -57,7 +62,8 @@ enum class ThreadWakeupReason;
*/
class SessionRequestHandler : public std::enable_shared_from_this<SessionRequestHandler> {
public:
SessionRequestHandler(KernelCore& kernel, const char* service_name_);
SessionRequestHandler(KernelCore& kernel_, const char* service_name_,
ServiceThreadType thread_type);
virtual ~SessionRequestHandler();
/**