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.
service_util.h
Go to the documentation of this file.
1 /*
2  * service_util.h
3  *
4  * Created on: 13 Feb 2023
5  * Author: billy
6  */
7 
8 #ifndef CORE_SERVER_SERVER_INCLUDE_SERVICE_UTIL_H_
9 #define CORE_SERVER_SERVER_INCLUDE_SERVICE_UTIL_H_
10 
11 
12 
14 
15 #include "service.h"
16 
17 
18 #ifdef __cplusplus
19 extern "C"
20 {
21 #endif
22 
23 
31 
32 
41 
42 
51 
52 
62 
63 
73 
74 
75 
77 
78 
79 
80 #ifdef __cplusplus
81 }
82 #endif
83 
84 
85 #endif /* CORE_SERVER_SERVER_INCLUDE_SERVICE_UTIL_H_ */
service.h
grassroots_service_manager_library.h
IsServiceLive
bool IsServiceLive(Service *service_p)
Has the Service got any jobs still running?
IsServiceLockable
bool IsServiceLockable(const Service *service_p)
Is a given Service lockable with a mutex for use in a multi-threaded situation.
Service
A datatype which defines an available service, its capabilities and its parameters.
Definition: service.h:153
LockService
bool LockService(Service *service_p)
Lock a given Service with a mutex for use in a multi-threaded situation.
RunAsyncSystemTaskHook
void * RunAsyncSystemTaskHook(void *data_p)
UnlockService
bool UnlockService(Service *service_p)
Release the lock for a given Service in a multi-threaded situation.
GetNumberOfLiveJobs
int32 GetNumberOfLiveJobs(Service *service_p)
Check if any ServiceJobs within Service are still running.
GRASSROOTS_SERVICE_MANAGER_API
#define GRASSROOTS_SERVICE_MANAGER_API
Definition: grassroots_service_manager_library.h:46