From fe5061a8e0e8f79736f7e7840051b872241df87a Mon Sep 17 00:00:00 2001 From: PixelyIon Date: Thu, 4 Mar 2021 19:00:14 +0530 Subject: [PATCH] Address CR Comments (#132) + Change Core Migration API This addresses all CR comments including more codebase-wide changes arising from certain review comments like proper usage of its/it's and consistent contraction of it is into it's. An overhaul was made to the presentation and formatting of `KThread.h` and `LoadBalance` works has been superseded by `GetOptimalCoreForThread` which can be used alongside `InsertThread` or `MigrateToCore`. It makes the API far more atomic and neater. This was a major point of contention for the design prior, it's simplified some code and potentially improved performance. --- .idea/inspectionProfiles/Project_Default.xml | 2 +- app/src/main/cpp/emu_jni.cpp | 2 +- app/src/main/cpp/skyline/common.cpp | 2 +- app/src/main/cpp/skyline/common.h | 5 +- app/src/main/cpp/skyline/common/settings.cpp | 2 + app/src/main/cpp/skyline/common/signal.cpp | 10 +- app/src/main/cpp/skyline/common/signal.h | 4 +- app/src/main/cpp/skyline/gpu/texture.h | 2 +- app/src/main/cpp/skyline/input/npad.h | 4 +- app/src/main/cpp/skyline/input/npad_device.h | 4 +- .../main/cpp/skyline/input/sections/Npad.h | 2 +- app/src/main/cpp/skyline/input/touch.h | 2 +- app/src/main/cpp/skyline/kernel/ipc.h | 18 +-- app/src/main/cpp/skyline/kernel/memory.h | 4 +- app/src/main/cpp/skyline/kernel/scheduler.cpp | 120 ++++++++++-------- app/src/main/cpp/skyline/kernel/scheduler.h | 56 ++++---- app/src/main/cpp/skyline/kernel/svc.cpp | 6 +- app/src/main/cpp/skyline/kernel/svc.h | 2 +- .../cpp/skyline/kernel/types/KProcess.cpp | 40 +++--- .../main/cpp/skyline/kernel/types/KProcess.h | 14 +- .../cpp/skyline/kernel/types/KSyncObject.cpp | 11 +- .../cpp/skyline/kernel/types/KSyncObject.h | 9 +- .../main/cpp/skyline/kernel/types/KThread.cpp | 11 +- .../main/cpp/skyline/kernel/types/KThread.h | 41 +++--- app/src/main/cpp/skyline/loader/loader.h | 27 ++-- app/src/main/cpp/skyline/loader/nro.h | 2 +- app/src/main/cpp/skyline/loader/nso.cpp | 2 +- app/src/main/cpp/skyline/loader/nso.h | 2 +- .../account/IAccountServiceForApplication.h | 20 ++- .../am/controller/IApplicationFunctions.h | 2 +- .../main/cpp/skyline/services/base_service.h | 2 +- .../main/cpp/skyline/services/common/parcel.h | 2 +- .../cpp/skyline/services/hid/IHidServer.h | 2 +- .../services/hosbinder/IHOSBinderDriver.cpp | 2 +- .../services/hosbinder/IHOSBinderDriver.h | 4 +- .../services/nvdrv/devices/nvhost_ctrl.h | 2 +- .../skyline/services/nvdrv/devices/nvmap.h | 4 +- .../main/cpp/skyline/services/nvdrv/driver.h | 2 +- .../main/cpp/skyline/services/serviceman.h | 4 +- .../services/settings/ISettingsServer.h | 2 +- .../cpp/skyline/services/sm/IUserInterface.h | 2 +- .../visrv/IApplicationDisplayService.h | 4 +- .../skyline/services/visrv/IDisplayService.h | 2 +- app/src/main/cpp/skyline/vfs/npdm.cpp | 5 +- app/src/main/cpp/skyline/vfs/rom_filesystem.h | 2 +- .../java/emu/skyline/EmulationActivity.kt | 4 +- 46 files changed, 256 insertions(+), 217 deletions(-) diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml index dfe4c22f..ea69c393 100644 --- a/.idea/inspectionProfiles/Project_Default.xml +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -171,7 +171,7 @@ -