Mercurial > hg > beaglert
diff include/BeagleRT.h @ 258:88cf310417cd aux_task_args
Add a parameter 'autoSchedule' to createAuxiliaryTask() which when true causes the task to be automatically scheduled after every render function call, without the user needing to call scheduleAuxiliaryTask()
author | Liam Donovan <l.b.donovan@qmul.ac.uk> |
---|---|
date | Sat, 07 May 2016 13:23:15 +0100 |
parents | 1606b50a58c6 |
children | c55c6f6c233c |
line wrap: on
line diff
--- a/include/BeagleRT.h Sat May 07 12:51:10 2016 +0100 +++ b/include/BeagleRT.h Sat May 07 13:23:15 2016 +0100 @@ -579,8 +579,8 @@ * \param priority Xenomai priority level at which the task should run. * \param name Name for this task, which should be unique system-wide (no other running program should use this name). */ -AuxiliaryTask BeagleRT_createAuxiliaryTask(void (*functionToCall)(void*), int priority, const char *name, void* args); -AuxiliaryTask BeagleRT_createAuxiliaryTask(void (*functionToCall)(void), int priority, const char *name); +AuxiliaryTask BeagleRT_createAuxiliaryTask(void (*functionToCall)(void*), int priority, const char *name, void* args, bool autoSchedule = false); +AuxiliaryTask BeagleRT_createAuxiliaryTask(void (*functionToCall)(void), int priority, const char *name, bool autoSchedule = false); /** * \brief Start an auxiliary task so that it can be run. @@ -609,6 +609,7 @@ * \param task Task to schedule for running. */ void BeagleRT_scheduleAuxiliaryTask(AuxiliaryTask task); +void BeagleRT_autoScheduleAuxiliaryTasks(); /** @} */ #include <Utilities.h>