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.
22 #ifndef GRASSROOTS_TASK_SYNC_DATA_H
23 #define GRASSROOTS_TASK_SYNC_DATA_H
void WaitOnSyncData(struct SyncData *sync_data_p, bool(*continue_fn)(void *data_p), void *data_p)
Wait for a SyncData condition to be met using a given function to check for the condition.
bool AcquireSyncDataLock(struct SyncData *sync_data_p)
Lock a SyncData to allow for thread-safe access.
struct SyncData * AllocateSyncData(void)
Allocate a SyncData.
bool ReleaseSyncDataLock(struct SyncData *sync_data_p)
Release the lock non a given SyncData.
#define GRASSROOTS_TASK_API
Definition: grassroots_task_library.h:46
A datatype that allows data to be shared between tasks (e.g.
Definition: linux_sync_data.h:30
void SendSyncData(struct SyncData *sync_data_p)
Signal that a condition has been met.
void FreeSyncData(struct SyncData *sync_data_p)
Free a SyncData.