Helixis 1.0
Task Programming API
Data Structures | Typedefs | Enumerations | Functions
includes/hlx/api.h File Reference

Go to the source code of this file.

Data Structures

struct  _hlx_thread_param
struct  _hlx_thread
struct  hlx_thread_api
struct  hlx_api

Typedefs

typedef void *(* hlx_malloc_entry_addr )(unsigned int)
typedef void(* hlx_free_entry_addr )(void *)
typedef void *(* hlx_aligned_malloc_entry_addr )(unsigned int size, unsigned int align)
typedef void(* hlx_aligned_free_entry_addr )(void *)
typedef atom_t(* hlx_atomic_incr_entry_addr )(atom_t *)
typedef atom_t(* hlx_atomic_decr_entry_addr )(atom_t *)
typedef atom_t(* hlx_atomic_cas_entry_addr )(volatile atom_t *dest, atom_t exchange, atom_t compare)
typedef unsigned char(* hlx_atomic_dcas_entry_addr )(volatile atom_t *dest, atom_t *exchange, atom_t *compare)
typedef unsigned int(* hlx_get_cpu_count_entry_addr )(void)
typedef void *(* hlx_memcpy_entry_addr )(void *, const void *, unsigned int)
typedef struct _hlx_thread hlx_thread
typedef void(* hlx_thread_func )(hlx_thread *, void *)
typedef struct _hlx_thread_param hlx_thread_param
typedef void(* hlx_thread_construct )(hlx_thread *)
typedef void(* hlx_thread_destruct )(hlx_thread *)
typedef void(* hlx_thread_execute )(hlx_thread *, hlx_thread_func, void *)
typedef void(* hlx_thread_suspend )(hlx_thread *)
typedef void(* hlx_thread_resume )(hlx_thread *)
typedef void(* hlx_thread_wait_for )(hlx_thread *)
typedef void(* hlx_thread_pause_if_needed )(hlx_thread *)
typedef void(* hlx_thread_yield )(void)

Enumerations

enum  hlx_thread_status { HLX_THREAD_PAUSED = 0, HLX_THREAD_LOCKED = 1, HLX_THREAD_RUNNING = 2 }

Functions

hlx_apihlx_get_api_entries (void)

Typedef Documentation

typedef void(* hlx_aligned_free_entry_addr)(void *)

Definition at line 41 of file api.h.

typedef void*(* hlx_aligned_malloc_entry_addr)(unsigned int size, unsigned int align)

Definition at line 40 of file api.h.

typedef atom_t(* hlx_atomic_cas_entry_addr)(volatile atom_t *dest, atom_t exchange, atom_t compare)

Definition at line 44 of file api.h.

typedef unsigned char(* hlx_atomic_dcas_entry_addr)(volatile atom_t *dest, atom_t *exchange, atom_t *compare)

Definition at line 45 of file api.h.

Definition at line 43 of file api.h.

Definition at line 42 of file api.h.

typedef void(* hlx_free_entry_addr)(void *)

Definition at line 39 of file api.h.

typedef unsigned int(* hlx_get_cpu_count_entry_addr)(void)

Definition at line 46 of file api.h.

typedef void*(* hlx_malloc_entry_addr)(unsigned int)

Definition at line 38 of file api.h.

typedef void*(* hlx_memcpy_entry_addr)(void *, const void *, unsigned int)

Definition at line 47 of file api.h.

typedef struct _hlx_thread hlx_thread

Definition at line 51 of file api.h.

typedef void(* hlx_thread_construct)(hlx_thread *)

Definition at line 77 of file api.h.

typedef void(* hlx_thread_destruct)(hlx_thread *)

Definition at line 78 of file api.h.

typedef void(* hlx_thread_execute)(hlx_thread *, hlx_thread_func, void *)

Definition at line 79 of file api.h.

typedef void(* hlx_thread_func)(hlx_thread *, void *)

Definition at line 52 of file api.h.

Definition at line 54 of file api.h.

Definition at line 83 of file api.h.

typedef void(* hlx_thread_resume)(hlx_thread *)

Definition at line 81 of file api.h.

typedef void(* hlx_thread_suspend)(hlx_thread *)

Definition at line 80 of file api.h.

typedef void(* hlx_thread_wait_for)(hlx_thread *)

Definition at line 82 of file api.h.

typedef void(* hlx_thread_yield)(void)

Definition at line 84 of file api.h.


Enumeration Type Documentation

Enumerator:
HLX_THREAD_PAUSED 
HLX_THREAD_LOCKED 
HLX_THREAD_RUNNING 

Definition at line 61 of file api.h.


Function Documentation

hlx_api* hlx_get_api_entries ( void  )

Get API entries

Returns:
API entries

Definition at line 48 of file api.c.

{
 return (&gl_api);
}
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines