Helixis 1.0
Task Programming API
Typedefs | Functions
includes/hlx/task_groups.h File Reference

Go to the source code of this file.

Typedefs

typedef unsigned long hlx_group_id

Functions

hlx_group_id hlx_core_create_group (void)

Typedef Documentation

typedef unsigned long hlx_group_id

Definition at line 37 of file task_groups.h.


Function Documentation

hlx_group_id hlx_core_create_group ( void  )

Create a new group of tasks in the scheduler

See also:
hlx_core_add_task_in_group()
Returns:
The new group ID.

Definition at line 93 of file sched.c.

References hlx_scheduler::groups, hlx_group_construct(), hlx_list_push_back(), hlx_group::id, and hlx_api::malloc_entry.

{
        hlx_group* g;

        if ((g = gl_api.malloc_entry(sizeof(*g))) == 0)
           return ((hlx_group_id)-1);
    hlx_group_construct(g);
        hlx_list_push_back(&gl_scheduler.groups, g);
        return (g->id);
}
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines