diff options
Diffstat (limited to 'src/core/hle/kernel/svc.cpp')
| -rw-r--r-- | src/core/hle/kernel/svc.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cpp index 4bae37d10..d89873104 100644 --- a/src/core/hle/kernel/svc.cpp +++ b/src/core/hle/kernel/svc.cpp | |||
| @@ -1451,10 +1451,9 @@ static ResultCode CreateThread(Core::System& system, Handle* out_handle, VAddr e | |||
| 1451 | Svc::ResultInvalidPriority); | 1451 | Svc::ResultInvalidPriority); |
| 1452 | R_UNLESS(process.CheckThreadPriority(priority), Svc::ResultInvalidPriority); | 1452 | R_UNLESS(process.CheckThreadPriority(priority), Svc::ResultInvalidPriority); |
| 1453 | 1453 | ||
| 1454 | ASSERT(process.GetResourceLimit()->Reserve( | 1454 | ASSERT(process.GetResourceLimit()->Reserve(LimitableResource::ThreadCountMax, 1, |
| 1455 | LimitableResource::ThreadCountMax, 1, | 1455 | system.CoreTiming().GetGlobalTimeNs().count() + |
| 1456 | system.CoreTiming().GetClockTicks() + | 1456 | 100000000)); |
| 1457 | Core::Timing::msToCycles(std::chrono::milliseconds{100}))); | ||
| 1458 | 1457 | ||
| 1459 | std::shared_ptr<KThread> thread; | 1458 | std::shared_ptr<KThread> thread; |
| 1460 | { | 1459 | { |