![]() |
Helixis 1.0
Task Programming API
|
#include "hlx/core.h" int main() { if (hlx_core_init() < 1) return (-1); hlx_core_start(); hlx_core_destroy(); return (0); }
Because of Helixis is written in "pure" C, we needs to give it the entry points of system calls. Depending on the configuration chosen in the configuration (build_config.h), you must provide more or fewer functions.
In Native Threading Mode (!HLX_BUILD_WITH_PARALLEL_THREADING) :
In Parallel Threading Mode (HLX_BUILD_WITH_PARALLEL_THREADING)
The Native Threading Mode gives us the following code :
#include <stdio.h> #include "hlx/core.h" int main() { hlx_get_api_entries()->malloc_entry = &malloc; hlx_get_api_entries()->free_entry = &free; if (hlx_core_init() < 1) return (-1); hlx_core_start(); hlx_core_destroy(); return (0); }