Core/Process: Add GetCurrentPid

This commit is contained in:
SirLynix
2024-01-23 10:26:22 +01:00
committed by Jérôme Leclercq
parent 9c102638c0
commit b0648918a7
6 changed files with 25 additions and 5 deletions

View File

@@ -29,7 +29,9 @@ namespace Nz
Process& operator=(const Process&) = delete;
Process& operator=(Process&&) = delete;
static Result<Pid, std::string> SpawnDetached(const std::filesystem::path& program, std::span<const std::string> arguments = {}, const std::filesystem::path& workingDirectory = {}); };
static Pid GetCurrentPid();
static Result<Pid, std::string> SpawnDetached(const std::filesystem::path& program, std::span<const std::string> arguments = {}, const std::filesystem::path& workingDirectory = {});
};
}
#include <Nazara/Core/Process.inl>