mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2026-03-08 06:22:55 +00:00
kernel/svc_types: refresh
This commit is contained in:
@@ -31,7 +31,7 @@ ServiceContext::~ServiceContext() {
|
||||
Kernel::KEvent* ServiceContext::CreateEvent(std::string&& name) {
|
||||
// Reserve a new event from the process resource limit
|
||||
Kernel::KScopedResourceReservation event_reservation(process,
|
||||
Kernel::LimitableResource::Events);
|
||||
Kernel::LimitableResource::EventCountMax);
|
||||
if (!event_reservation.Succeeded()) {
|
||||
LOG_CRITICAL(Service, "Resource limit reached!");
|
||||
return {};
|
||||
|
||||
Reference in New Issue
Block a user