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 SHARED_SRC_UTIL_INCLUDE_PROCESS_H_
28 #define SHARED_SRC_UTIL_INCLUDE_PROCESS_H_
#define GRASSROOTS_TASK_LOCAL
Definition: grassroots_task_library.h:47
char * std_command_line_s
The command line that this SystemAsyncTask will run.
Definition: system_async_task.h:64
void(* std_on_success_callback_fn)(ServiceJob *job_p)
The callback function that this SystemAsyncTask will call if it runs successfully.
Definition: system_async_task.h:71
MEM_FLAG
An enum specifying the particular status of a piece of dynamically allocated memory for a particular ...
Definition: memory_allocations.h:38
bool SetSystemAsyncTaskCommand(SystemAsyncTask *task_p, const char *command_s)
Set the command line for a SystemAsyncTask to run.
A datatype to represent a running task.
Definition: service_job.h:72
MEM_FLAG std_async_task_mem
The MEM_FLAG determining whether the AsyncTask pointed to by std_async_task_p will be deleted when th...
Definition: system_async_task.h:53
A datatype to use to run tasks asynchronously.
Definition: async_task.h:25
AsyncTask * std_async_task_p
The underlying AsyncTask.
Definition: system_async_task.h:47
ServiceJob * std_service_job_p
The ServiceJob that will run this SystemAsyncTask.
Definition: system_async_task.h:61
#define GRASSROOTS_TASK_API
Definition: grassroots_task_library.h:46
bool RunSystemAsyncTask(SystemAsyncTask *task_p)
Run a SystemAsyncTask.
OperationStatus
The current status of an Operation.
Definition: operation.h:96
A datatype for storing AsyncTasks in a collection.
Definition: async_tasks_manager.h:24
void FreeSystemAsyncTask(SystemAsyncTask *task_p)
Free a SystemAsyncTask.
A datatype to allow the running of command-line applications in a separate task.
Definition: system_async_task.h:44
SystemAsyncTask * AllocateSystemAsyncTask(ServiceJob *job_p, const char *name_s, struct AsyncTasksManager *manager_p, bool add_flag, const char *command_s, void(*on_success_callback_fn)(ServiceJob *job_p))
Allocate a SystemAsyncTask.