diff options
| author | 2021-01-30 21:03:10 +1100 | |
|---|---|---|
| committer | 2021-01-30 21:03:10 +1100 | |
| commit | 3bf62c7a8a68822e608c2f5f5748bd111d7ee4cf (patch) | |
| tree | 216d2ee14432256f4c29f4ee656499eb936ff514 /src/core/hle/kernel/svc.cpp | |
| parent | kernel: Rewrite resource limit to be more accurate (diff) | |
| download | yuzu-3bf62c7a8a68822e608c2f5f5748bd111d7ee4cf.tar.gz yuzu-3bf62c7a8a68822e608c2f5f5748bd111d7ee4cf.tar.xz yuzu-3bf62c7a8a68822e608c2f5f5748bd111d7ee4cf.zip | |
Move to GetGlobalTimeNs, fix GetTotalPhysicalMemoryAvailable
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 | { |