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.
|
Go to the documentation of this file.
27 #ifndef CORE_SERVER_TASK_INCLUDE_EVENT_CONSUMER_H_
28 #define CORE_SERVER_TASK_INCLUDE_EVENT_CONSUMER_H_
void FreeEventConsumer(EventConsumer *consumer_p)
Free an EventConsumer.
void RunEventConsumer(EventConsumer *consumer_p, struct AsyncTask *task_p)
Fire an EventConsumer's callback function to notify that the given AsyncTask has completed.
A datatype to use to run tasks asynchronously.
Definition: async_task.h:25
void(* at_consumer_fn)(struct EventConsumer *consumer_p, struct AsyncTask *task_p)
The callback function to call when an AsyncTask has completed.
Definition: event_consumer.h:52
#define GRASSROOTS_TASK_API
Definition: grassroots_task_library.h:46
An EvenetConsumer is a datatype to allow an object to be notified when an AsyncTask has completed run...
Definition: event_consumer.h:44
bool InitEventConsumer(EventConsumer *consumer_p, void(*consumer_fn)(EventConsumer *consumer_p, struct AsyncTask *task_p))
Initialise an EventConsumer with a given callback function.
void ClearEventConsumer(EventConsumer *consumer_p)
Clear an EventConsumer.
EventConsumer * AllocateEventConsumer(void(*consumer_fn)(EventConsumer *consumer_p, struct AsyncTask *task_p))
Allocate an EventConsumer to receive notification when an AsyncTask completes.