Add Process, Thread and Environment

This commit is contained in:
Isuru Samarathunga
2025-10-24 21:11:23 +05:30
parent 5a38f9f36d
commit 6c3090f3c6
18 changed files with 416 additions and 16 deletions

View File

@ -1,34 +1,36 @@
#include <IACore/Logger.hpp>
#include <IACore/File.hpp>
#include <IACore/Logger.hpp>
#include <IACore/Vector.hpp>
#include <IACore/Map.hpp>
#include <IACore/Vector.hpp>
#include <IACore/Process.hpp>
#include <IACore/Environment.hpp>
using namespace ia;
template<typename _value_type>
VOID print(IN CONST Span<_value_type>& s)
template<typename _value_type> VOID print(IN CONST Span<_value_type> &s)
{
for(const auto& v: s)
for (const auto &v : s)
Logger::Info("IACore", v);
}
int main(int argc, char* argv[])
int main(int argc, char *argv[])
{
Vector<int> v1{10, 20, 32};
/*ector<int> v1{10, 20, 32};
print(v1);
List<int> l1;
Map<String, int> m1;
m1["sdd"] = 2;
m1["bx"] = 5;
for(const auto& v: m1)
{
for (const auto &v : m1)
printf("%s, %i\n", v->Key.c_str(), v->Value);
}
SubProcess p("clang++");
p.Launch("a.cpp", [](IN CONST String &line) { printf("[\n%s\n]\n", line.c_str()); });*/
printf("[%s]\n", Environment::GetVar("IAEDK_ROOT").c_str());
Environment::SetVar("IAEDK_ROOT", "C:\\IAEDK");
printf("[%s]\n", Environment::GetVar("IAEDK_ROOT").c_str());
return 0;
}