diff options
| author | Amlal El Mahrouss <amlalelmahrouss@icloud.com> | 2024-03-05 08:48:23 +0000 |
|---|---|---|
| committer | Amlal El Mahrouss <amlalelmahrouss@icloud.com> | 2024-03-05 08:48:23 +0000 |
| commit | 1dc32533305adc40af5683792b74f6074a41fd32 (patch) | |
| tree | cba9842f4c8acd25ddd4c66eed734b5e39267658 /Private/Source | |
| parent | 64c8674bc09985fcf7119cfb2b88cad3081b1603 (diff) | |
Kernel: Add ProcessManager.cxx, wrap packed UPP into compiler independent code.
Diffstat (limited to 'Private/Source')
| -rw-r--r-- | Private/Source/PEFCodeManager.cxx | 2 | ||||
| -rw-r--r-- | Private/Source/ProcessManager.cxx | 10 | ||||
| -rw-r--r-- | Private/Source/ProcessTeam.cxx | 15 |
3 files changed, 21 insertions, 6 deletions
diff --git a/Private/Source/PEFCodeManager.cxx b/Private/Source/PEFCodeManager.cxx index e6296a2b..572b90b3 100644 --- a/Private/Source/PEFCodeManager.cxx +++ b/Private/Source/PEFCodeManager.cxx @@ -152,5 +152,5 @@ const char *PEFLoader::Path() { return fPath.Leak().CData(); } const char *PEFLoader::Format() { return "PEF"; } -const char *PEFLoader::MIME() { return "application/x-hcore-exec"; } +const char *PEFLoader::MIME() { return kPefApplicationMime; } } // namespace HCore diff --git a/Private/Source/ProcessManager.cxx b/Private/Source/ProcessManager.cxx index 20f60c4f..37293aa5 100644 --- a/Private/Source/ProcessManager.cxx +++ b/Private/Source/ProcessManager.cxx @@ -251,7 +251,7 @@ bool ProcessHelper::CanBeScheduled(Ref<Process> &process) { } /** - * @brief Spin scheduler + * @brief Spin scheduler class. */ bool ProcessHelper::StartScheduling() { if (ProcessHelper::CanBeScheduled( @@ -260,15 +260,15 @@ bool ProcessHelper::StartScheduling() { return false; } - auto process_ref = ProcessManager::Shared().Leak(); + auto processRef = ProcessManager::Shared().Leak(); - if (!process_ref) + if (!processRef) return false; // we have nothing to schedule. simply return. - SizeT ret = process_ref.Run(); + SizeT ret = processRef.Run(); kcout << StringBuilder::FromInt( - "ProcessHelper::StartScheduling() Iterated over: % processes.\r\n", ret); + "ProcessHelper::StartScheduling() Iterated over: {%} processes.\r\n", ret); return true; } diff --git a/Private/Source/ProcessTeam.cxx b/Private/Source/ProcessTeam.cxx new file mode 100644 index 00000000..678f5fce --- /dev/null +++ b/Private/Source/ProcessTeam.cxx @@ -0,0 +1,15 @@ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ + +/***********************************************************************************/ +/// @file ProcessTeam.cxx +/// @brief Process Team API. +/***********************************************************************************/ + +#include <KernelKit/ProcessManager.hpp> +#include <KernelKit/SMPManager.hpp> + +// last rev 05-03-24
\ No newline at end of file |
