Mercurial > hg > beaglert
comparison include/BeagleRT.h @ 174:1e629f126322
AuxiliaryTask can now be scheduled from setup(). Closes #1373
author | Giulio Moro <giuliomoro@yahoo.it> |
---|---|
date | Mon, 28 Dec 2015 13:53:11 +0100 |
parents | 2877bc2cd449 |
children | 9bfe04d184fb d7148d21aaa5 |
comparison
equal
deleted
inserted
replaced
173:2877bc2cd449 | 174:1e629f126322 |
---|---|
435 * \brief Stop processing audio and sensor data. | 435 * \brief Stop processing audio and sensor data. |
436 * | 436 * |
437 * This function will stop the BeagleRT audio/sensor system. After this function returns, no further | 437 * This function will stop the BeagleRT audio/sensor system. After this function returns, no further |
438 * calls to render() will be issued. | 438 * calls to render() will be issued. |
439 */ | 439 */ |
440 int BeagleRT_startAuxiliaryTask(AuxiliaryTask it); | |
440 void BeagleRT_stopAudio(); | 441 void BeagleRT_stopAudio(); |
441 | 442 |
442 /** | 443 /** |
443 * \brief Clean up resources from audio and sensor processing. | 444 * \brief Clean up resources from audio and sensor processing. |
444 * | 445 * |
578 * \param name Name for this task, which should be unique system-wide (no other running program should use this name). | 579 * \param name Name for this task, which should be unique system-wide (no other running program should use this name). |
579 */ | 580 */ |
580 AuxiliaryTask BeagleRT_createAuxiliaryTask(void (*functionToCall)(void), int priority, const char *name); | 581 AuxiliaryTask BeagleRT_createAuxiliaryTask(void (*functionToCall)(void), int priority, const char *name); |
581 | 582 |
582 /** | 583 /** |
584 * \brief Start an auxiliary task so that it can be run. | |
585 * | |
586 * This function will start an auxiliary task but will NOT schedule it. | |
587 * It will also set a flag in the associate InternalAuxiliaryTask to flag the | |
588 * task as "started", so that successive calls to the same function for a given AuxiliaryTask | |
589 * have no effect. | |
590 * The user should never be required to call this function directly, as it is called | |
591 * by BeagleRT_scheduleAuxiliaryTask if needed (e.g.: if a task is scheduled in setup() ) | |
592 * or immediately after starting the audio thread. | |
593 * | |
594 * \param task Task to start. | |
595 */ | |
596 | |
597 int BeagleRT_startAuxiliaryTask(AuxiliaryTask task); | |
598 /** | |
583 * \brief Run an auxiliary task which has previously been created. | 599 * \brief Run an auxiliary task which has previously been created. |
584 * | 600 * |
585 * This function will schedule an auxiliary task to run. When the task runs, the function in the first | 601 * This function will schedule an auxiliary task to run. When the task runs, the function in the first |
586 * argument of createAuxiliaryTaskLoop() will be called. | 602 * argument of createAuxiliaryTaskLoop() will be called. |
587 * | 603 * |