Mercurial > hg > beaglert
comparison 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 |
comparison
equal
deleted
inserted
replaced
257:1606b50a58c6 | 258:88cf310417cd |
---|---|
577 * | 577 * |
578 * \param functionToCall Function which will run each time the auxiliary task is scheduled. | 578 * \param functionToCall Function which will run each time the auxiliary task is scheduled. |
579 * \param priority Xenomai priority level at which the task should run. | 579 * \param priority Xenomai priority level at which the task should run. |
580 * \param name Name for this task, which should be unique system-wide (no other running program should use this name). | 580 * \param name Name for this task, which should be unique system-wide (no other running program should use this name). |
581 */ | 581 */ |
582 AuxiliaryTask BeagleRT_createAuxiliaryTask(void (*functionToCall)(void*), int priority, const char *name, void* args); | 582 AuxiliaryTask BeagleRT_createAuxiliaryTask(void (*functionToCall)(void*), int priority, const char *name, void* args, bool autoSchedule = false); |
583 AuxiliaryTask BeagleRT_createAuxiliaryTask(void (*functionToCall)(void), int priority, const char *name); | 583 AuxiliaryTask BeagleRT_createAuxiliaryTask(void (*functionToCall)(void), int priority, const char *name, bool autoSchedule = false); |
584 | 584 |
585 /** | 585 /** |
586 * \brief Start an auxiliary task so that it can be run. | 586 * \brief Start an auxiliary task so that it can be run. |
587 * | 587 * |
588 * This function will start an auxiliary task but will NOT schedule it. | 588 * This function will start an auxiliary task but will NOT schedule it. |
607 * will not run immediately, but only once any active higher priority tasks have finished. | 607 * will not run immediately, but only once any active higher priority tasks have finished. |
608 * | 608 * |
609 * \param task Task to schedule for running. | 609 * \param task Task to schedule for running. |
610 */ | 610 */ |
611 void BeagleRT_scheduleAuxiliaryTask(AuxiliaryTask task); | 611 void BeagleRT_scheduleAuxiliaryTask(AuxiliaryTask task); |
612 void BeagleRT_autoScheduleAuxiliaryTasks(); | |
612 | 613 |
613 /** @} */ | 614 /** @} */ |
614 #include <Utilities.h> | 615 #include <Utilities.h> |
615 | 616 |
616 #endif /* BEAGLERT_H_ */ | 617 #endif /* BEAGLERT_H_ */ |