![]() |
Helixis 1.0
Task Programming API
|
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 unsigned long hlx_group_id |
Definition at line 37 of file task_groups.h.
hlx_group_id hlx_core_create_group | ( | void | ) |
Create a new group of tasks in the scheduler
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); }