NAME

fttl_activate_template - Makes a specified template the active template.

SYNOPSIS

kern_return_t fttl_activate_template(template)

ft_template_t template;

DESCRIPTION

The fttl_activate_template system call makes template the active template. This means that template will be copied to the time- line when periodic timeline threads are enabled (see fttl_enable_periodic). The contents of template are not affected by this call. The previously active template is simply disasso- ciated from the timeline, its contents are also unaffected by the call. template must have been created by the fttl_create_template system call. fttl_add_to_template can be used to add periodic threads to a template whether it is active or not. fttl_thread_create adds periodic threads to the timeline and the active template only.

PARAMETERS

template  Specifies a template previously created by fttl_create_template or the default template, (template = NULL). 

RETURN VALUE

KERN_SUCCESS template has been made the active template. 
KERN_INVALID_ARGUMENT template is invalid. 

RELATED INFORMATION

Functions:

rt_thread_exit, thread_create, thread_terminate, thread_get_attribute, thread_set_attribute, fttl_thread_create,fttl_thread_attribute_init, rt_set_scheduling_policy, fttl_set_fault_flag, fttl_set_fault_interval,fttl_activate_persist_thread,fttl_enable_periodic,fttl_disable_periodic,fttl_create_template,fttl_activate_template,fttl_add_to_template,fttl_remove_from_template,fttl_clear_template.fttl_get_template_length.