Grassroots Infrastructure
The Grassroots Infrastructure is a suite of computing tools to help users and developers use scientific data infrastructure that can easily be interconnected.
|
A datatype that has an EventConsumer and a pointer to the AsyncTasksManager that owns it. More...
#include <async_tasks_manager.h>
Public Member Functions | |
AsyncTasksManagerEventConsumer * | AllocateAsyncTasksManagerEventConsumer (void(*consumer_fn)(EventConsumer *consumer_p, struct AsyncTask *task_p), AsyncTasksManager *manager_p) |
Create a new AsyncTasksManagerEventConsumer and store it in the given AsyncTasksManager. More... | |
void | FreeAsyncTasksManagerEventConsumer (AsyncTasksManagerEventConsumer *consumer_p) |
Free an AsyncTasksManagerEventConsumer. More... | |
Data Fields | |
EventConsumer | atmec_base_consumer |
The EventConsumer. More... | |
AsyncTasksManager * | atmec_tasks_manager_p |
The AsyncTasksManager that owns this AsyncTasksManagerEventConsumer. More... | |
A datatype that has an EventConsumer and a pointer to the AsyncTasksManager that owns it.
AsyncTasksManagerEventConsumer * AllocateAsyncTasksManagerEventConsumer | ( | void(*)(EventConsumer *consumer_p, struct AsyncTask *task_p) | consumer_fn, |
AsyncTasksManager * | manager_p | ||
) |
Create a new AsyncTasksManagerEventConsumer and store it in the given AsyncTasksManager.
consumer_fn | The callback function that the new AsyncTasksManagerEventConsumer's atmec_base_consumer will use. |
manager_p | The AsyncTasksManager that will store this AsyncTasksManagerEventConsumer. |
NULL
upon error. void FreeAsyncTasksManagerEventConsumer | ( | AsyncTasksManagerEventConsumer * | consumer_p | ) |
Free an AsyncTasksManagerEventConsumer.
consumer_p | The AsyncTasksManagerEventConsumer to free. |
EventConsumer atmec_base_consumer |
The EventConsumer.
AsyncTasksManager* atmec_tasks_manager_p |
The AsyncTasksManager that owns this AsyncTasksManagerEventConsumer.