DASH
0.3.0
|
Go to the source code of this file.
Macros | |
#define | DART_LOCK_NULL ((dart_lock_t)NULL) |
Null value for dart_lock_t to reset a DART lock instance. More... | |
Typedefs | |
typedef struct dart_lock_struct * | dart_lock_t |
Lock type to ensure mutual exclusion among units in a team. More... | |
Functions | |
dart_ret_t | dart_team_lock_init (dart_team_t teamid, dart_lock_t *lock) |
Collective operation to initialize the lock object. More... | |
dart_ret_t | dart_team_lock_destroy (dart_lock_t *lock) |
Collective operation to destroy a lock initialized using dart_team_lock_init. More... | |
dart_ret_t | dart_lock_acquire (dart_lock_t lock) |
Block until the lock was acquired. More... | |
dart_ret_t | dart_lock_try_acquire (dart_lock_t lock, int32_t *result) |
Try to acquire the lock and return immediately. More... | |
dart_ret_t | dart_lock_release (dart_lock_t lock) |
Release the lock acquired through dart_lock_acquire or dart_lock_try_acquire. More... | |
bool | dart_lock_initialized (struct dart_lock_struct const *lock) |
Whether the lock has been properly initialized. More... | |
#define DART_LOCK_NULL ((dart_lock_t)NULL) |
Null value for dart_lock_t to reset a DART lock instance.
The lock has to be initialized using dart_team_lock_init.
Definition at line 36 of file dart_synchronization.h.