Helixis 1.0
Task Programming API
Functions
includes/hlx/core.h File Reference
#include "platforms.h"
#include "compilers.h"
#include "atomic.h"
#include "api.h"
#include "tools.h"
#include "config.h"
#include "task_groups.h"
#include "task.h"
#include "sched.h"
#include "events.h"
#include "channels.h"

Go to the source code of this file.

Functions

int hlx_core_init (void)
void hlx_core_start (void)
void hlx_core_stop (void)
void hlx_core_destroy (void)

Function Documentation

void hlx_core_destroy ( void  )

Free all resources

See also:
hlx_core_init()
Remarks:
After this call you cannot use the Framework

Definition at line 89 of file parallel_core.c.

References _destroy_channel_manager(), and hlx_scheduler_destruct().

int hlx_core_init ( void  )

Initialize the Framework

See also:
hlx_core_destroy()
Returns:
Returns 1 if the operation was successful otherwise 0

Definition at line 60 of file parallel_core.c.

References _init_channel_manager(), hlx_api::aligned_free_entry, hlx_api::aligned_malloc_entry, hlx_api::atomic_cas_entry, hlx_api::atomic_dcas_entry, hlx_api::atomic_decr_entry, hlx_api::atomic_incr_entry, hlx_api::free_entry, hlx_memcpy(), hlx_scheduler_construct(), hlx_api::malloc_entry, hlx_api::memcpy_entry, hlx_api::thread_api, hlx_thread_api::thread_construct, hlx_thread_api::thread_destruct, hlx_thread_api::thread_execute, hlx_thread_api::thread_pause_if_needed, hlx_thread_api::thread_resume, hlx_thread_api::thread_suspend, hlx_thread_api::thread_wait_for, and hlx_thread_api::thread_yield.

void hlx_core_start ( void  )

Start the framework

See also:
hlx_core_stop()

Definition at line 79 of file parallel_core.c.

References hlx_scheduler_schedule().

void hlx_core_stop ( void  )

Stop the framework

See also:
hlx_core_stop()

Definition at line 84 of file parallel_core.c.

References hlx_sheduler_end_all_threads().

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines