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.
8 #ifndef CORE_SERVER_TASK_INCLUDE_COUNT_ASYNC_TASK_H_
9 #define CORE_SERVER_TASK_INCLUDE_COUNT_ASYNC_TASK_H_
AsyncTask * GetAsyncTaskFromCountAsyncTask(CountAsyncTask *count_task_p)
Get the underlying AsyncTask for a given CountAsyncTask.
bool IncrementCountAsyncTask(CountAsyncTask *count_task_p)
Increment the counter for a given CountAsyncTask.
void FreeCountAsyncTask(CountAsyncTask *count_task_p)
Free a CountAsyncTask.
void ClearCountAsyncTask(CountAsyncTask *count_task_p)
Remove and free the underlying AsyncTask from a given CountAsyncTask.
A datatype for an AsyncTask that has a counter that sends a signal when that counter reaches a given ...
Definition: count_async_task.h:23
int32 cat_current_value
The current value of the counter for this CountAsyncTask.
Definition: count_async_task.h:29
A datatype to use to run tasks asynchronously.
Definition: async_task.h:25
#define GRASSROOTS_TASK_API
Definition: grassroots_task_library.h:46
A datatype for storing AsyncTasks in a collection.
Definition: async_tasks_manager.h:24
int32 cat_limit
The value at which this CountAsyncTask will send the message saying that it has completed.
Definition: count_async_task.h:35
CountAsyncTask * AllocateCountAsyncTask(const char *name_s, struct AsyncTasksManager *manager_p, bool add_flag, int32 limit)
Allocate a CountAsyncTask.
AsyncTask * cat_task_p
The underlying AsyncTask.
Definition: count_async_task.h:26
bool ContinueCountAsyncTask(const CountAsyncTask *count_task_p)
The default callback function to check whether a CountAsyncTask could continue running.
void SetCountAsyncTaskLimit(CountAsyncTask *task_p, int32 limit)
Set the limit for a given CountAsyncTask.
bool InitCountAsyncTask(CountAsyncTask *count_task_p, const char *name_s, struct AsyncTasksManager *manager_p, bool add_flag, int32 limit)
Initialise a CountAsyncTask.