|
StarPU Internal Handbook
|
#include <stdint.h>#include <starpu.h>Go to the source code of this file.
Data Structures | |
| struct | _starpu_rw_lock |
Functions | |
| void | _starpu_init_rw_lock (struct _starpu_rw_lock *lock) |
| void | _starpu_take_rw_lock_write (struct _starpu_rw_lock *lock) |
| void | _starpu_take_rw_lock_read (struct _starpu_rw_lock *lock) |
| int | _starpu_take_rw_lock_write_try (struct _starpu_rw_lock *lock) |
| int | _starpu_take_rw_lock_read_try (struct _starpu_rw_lock *lock) |
| void | _starpu_release_rw_lock (struct _starpu_rw_lock *lock) |
| struct _starpu_rw_lock |
| void _starpu_init_rw_lock | ( | struct _starpu_rw_lock * | lock | ) |
Initialize the RW-lock
| void _starpu_take_rw_lock_write | ( | struct _starpu_rw_lock * | lock | ) |
Grab the RW-lock in a write mode
| void _starpu_take_rw_lock_read | ( | struct _starpu_rw_lock * | lock | ) |
Grab the RW-lock in a read mode
| int _starpu_take_rw_lock_write_try | ( | struct _starpu_rw_lock * | lock | ) |
Try to grab the RW-lock in a write mode. Returns 0 in case of success, -1 otherwise.
| int _starpu_take_rw_lock_read_try | ( | struct _starpu_rw_lock * | lock | ) |
Try to grab the RW-lock in a read mode. Returns 0 in case of success, -1 otherwise.
| void _starpu_release_rw_lock | ( | struct _starpu_rw_lock * | lock | ) |
Unlock the RW-lock.