Functions

/home/mesh/mesh/include/mesh_def_schedulers.h File Reference

MESH default schedulers. More...

Go to the source code of this file.

Functions

GSList * mesh_scheduler_rr (mesh_scheduler *cs)
 This is the default schedulmesh_enable_trace_collectioner function. It uses a round-robin algorithm to schedule all the eligible threads onto idle resources, with a preference to using idle resources with a larger default computational power. It.
GSList * mesh_scheduler_rr_w_overhead (mesh_scheduler *cs)
 Default round-robin scheduler. Keeps track of execution overhead of scheduling. If mesh_set_sched_resource() is set, that resource will be used to do all the scheduling. If sched_resource is NULL, the scheduling decision overhead will be applied to the processor decision is made on.
mesh_thread * mesh_sched_get_eligible_thread_by_name (gchar *, mesh_scheduler *)
 Searches the given scheduler, for an eligible thread named 'name' and.
GSList * mesh_sched_find_idle_resources (mesh_scheduler *)
 Searches the given scheduler, and.
GSList * mesh_get_resource_by_name (gchar *name, GSList *list, mesh_resource **resource)
 This function takes the resource name and a list of resources as inputs and.

Detailed Description

MESH default schedulers.


Function Documentation

GSList* mesh_get_resource_by_name ( gchar *  name,
GSList *  list,
mesh_resource **  resource 
)

This function takes the resource name and a list of resources as inputs and.

Parameters:
name String containing the resource name
list List of mesh_resources
resource Pointer to the found resource
Returns:
the pointer to the found resource. The found resource is removed from the list.
A GSList of mesh_resources with the found resource removed.
See also:
mesh_scheduler_rr()
GSList* mesh_sched_find_idle_resources ( mesh_scheduler *  cs  ) 

Searches the given scheduler, and.

label mesh_sched_find_idle_resources

Parameters:
cs Scheduler to search for idle resources
Returns:
a GSList of mesh_resource pointers for every resource that is idle. The caller is responsible for freeing this list. This function is useful when writing custom scheduler routines.
A GSList of mesh_resource*
See also:
mesh_scheduler_rr()
mesh_thread* mesh_sched_get_eligible_thread_by_name ( gchar *  name,
mesh_scheduler *  cs 
)

Searches the given scheduler, for an eligible thread named 'name' and.

Parameters:
name Textual name of thread to search for
cs Scheduler to search for eligible thread
Returns:
it's mesh_thread pointer. This is useful when writing custom schedulers.
mesh_thread * of named thread, or NULL if not found
See also:
mesh_sched_find_idle_resources()
GSList* mesh_scheduler_rr ( mesh_scheduler *  cs  ) 

This is the default schedulmesh_enable_trace_collectioner function. It uses a round-robin algorithm to schedule all the eligible threads onto idle resources, with a preference to using idle resources with a larger default computational power. It.

Parameters:
cs Current scheduler
Returns:
a list of thread-resource pairs which should be run by the kernel. This function can be passed to mesh_create_scheduler.
GSList of mesh_resource_thread_pair to be run
See also:
mesh_resource_thread_pair, mesh_create_scheduler()
GSList * mesh_scheduler_rr_w_overhead ( mesh_scheduler *  cs  ) 

Default round-robin scheduler. Keeps track of execution overhead of scheduling. If mesh_set_sched_resource() is set, that resource will be used to do all the scheduling. If sched_resource is NULL, the scheduling decision overhead will be applied to the processor decision is made on.

Parameters:
cs Current scheduler
Returns:
GSList of mesh_resource_thread_pair to be run
See also:
mesh_resource_thread_pair, mesh_create_scheduler(), mesh_set_sched_resource()
 All Files Functions