![]() |
![]() |
Data Structures | |
struct | Pause_Attrs |
Attributes used to create a Pause. More... | |
Typedefs | |
typedef struct Pause_Object * | Pause_Handle |
Handle through which to reference a Pause Object. | |
Functions | |
Pause_Handle | Pause_create (Pause_Attrs *attrs) |
Creates a Pause object. | |
Void | Pause_test (Pause_Handle hPause) |
Called to see if processing is supposed to pause. If so, block the execution of the thread. Otherwise continue. | |
Void | Pause_on (Pause_Handle hPause) |
Called to set processing threads to pause. | |
Void | Pause_off (Pause_Handle hPause) |
Called to release processing threads currently paused. | |
Int | Pause_delete (Pause_Handle hPause) |
Deletes a Pause object. | |
Variables | |
const Pause_Attrs | Pause_Attrs_DEFAULT |
Default attributes for a Pause. |
main: #include <xdc/std.h> #include <ti/sdo/dmai/Dmai.h> #include <ti/sdo/dmai/Pause.h> Pause_Handle hPause; Pause_Attrs pAttrs = Pause_Attrs_DEFAULT; Dmai_init(); hPause = Pause_create(&pAttrs); thread1: extern Pause_Handle hPause; Pause_on(hPause); // Do things! Anyone executing Pause_test(hPause) here will block. Pause off(hPause); thread2: extern Pause_Handle hPause; // If Pause_on(hPause) has been called, the below will block until // Pause_off(hPause) is called. Pause_test(hPause);
typedef struct Pause_Object* Pause_Handle |
Handle through which to reference a Pause Object.
Pause_Handle Pause_create | ( | Pause_Attrs * | attrs | ) |
Creates a Pause object.
[in] | attrs | Pause_Attrs to use for creating the Pause Object. |
Handle | for use in subsequent operations (see Pause_Handle). | |
NULL | for failure. |
Void Pause_test | ( | Pause_Handle | hPause | ) |
Called to see if processing is supposed to pause. If so, block the execution of the thread. Otherwise continue.
[in] | hPause | Pause_Handle to test. |
Void Pause_on | ( | Pause_Handle | hPause | ) |
Called to set processing threads to pause.
[in] | hPause | Pause_Handle to pause. |
Void Pause_off | ( | Pause_Handle | hPause | ) |
Called to release processing threads currently paused.
[in] | hPause | Pause_Handle to release. |
Int Pause_delete | ( | Pause_Handle | hPause | ) |
Deletes a Pause object.
[in] | hPause | Pause_Handle of the Paise object to delete. |
Dmai_EOK | for success. | |
Negative value | for failure, see Dmai.h. |
Default attributes for a Pause.