Helixis 1.0
Task Programming API
Tutorial

Getting started with Helixis in C/C++

1) Put the code below in your main source

 #include "hlx/core.h"
 
 int main()
 {
   if (hlx_core_init() < 1)
      return (-1);
   hlx_core_start();
   hlx_core_destroy();
   return (0);
 }

2) Initialize Helixis API

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);
 }
Remarks:
All prototypes are detailed in api.h
For The Parallel Threading Mode see the section with the same name.

3) Do what you want :)

Sample codes section

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines