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 File Reference
Include dependency graph for service_util.h:

Go to the source code of this file.

Functions

bool IsServiceLive (Service *service_p)
 Has the Service got any jobs still running? More...
 
int32 GetNumberOfLiveJobs (Service *service_p)
 Check if any ServiceJobs within Service are still running. More...
 
bool IsServiceLockable (const Service *service_p)
 Is a given Service lockable with a mutex for use in a multi-threaded situation. More...
 
bool LockService (Service *service_p)
 Lock a given Service with a mutex for use in a multi-threaded situation. More...
 
bool UnlockService (Service *service_p)
 Release the lock for a given Service in a multi-threaded situation. More...
 
void * RunAsyncSystemTaskHook (void *data_p)
 

Function Documentation

◆ IsServiceLive()

bool IsServiceLive ( Service service_p)

Has the Service got any jobs still running?

Parameters
service_pThe Service to check.
Returns
true if the Service still has active jobs, false otherwise.

◆ GetNumberOfLiveJobs()

int32 GetNumberOfLiveJobs ( Service service_p)

Check if any ServiceJobs within Service are still running.

Parameters
service_pThe Service to check.
Returns
true if there are still some ServiceJobs in the given service that are still running, false otherwise.

◆ IsServiceLockable()

bool IsServiceLockable ( const Service service_p)

Is a given Service lockable with a mutex for use in a multi-threaded situation.

Parameters
service_pThe Service to check.
Returns
true if the Service is lockable, false otherwise.

◆ LockService()

bool LockService ( Service service_p)

Lock a given Service with a mutex for use in a multi-threaded situation.

Parameters
service_pThe Service to check.
Returns
true if the Service was locked successfully, false otherwise.

◆ UnlockService()

bool UnlockService ( Service service_p)

Release the lock for a given Service in a multi-threaded situation.

Parameters
service_pThe Service to check.
Returns
true if the Service was unlocked successfully, false otherwise.

◆ RunAsyncSystemTaskHook()

void* RunAsyncSystemTaskHook ( void *  data_p)