Changes between Version 12 and Version 13 of library_locks
- Timestamp:
- Sep 27, 2015, 2:25:50 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
library_locks
v12 v13 43 43 * The number of involved tasks in a given cluster is the same for all involved clusters. 44 44 45 === '''void sqt_lock_init'''( sqt_lock_t * lock ) ===46 This function should be called by one single task. 45 === '''void sqt_lock_init'''( sqt_lock_t * lock , unsigned int x_size , unsigned int y_size , unsigned int nthreads ) === 46 This function should be called by one single task. It allocates both the distributed locks in each cluster (from the distributed heaps), and it initializes the sqt_lock_t variable (that must be allocated in the user application data segment). 47 47 * '''lock''' : pointer on the sqt_lock_t structure. 48 * '''x_size''' : number of clusters in a row. 49 * '''x_size''' : number of clusters in a column. 50 * '''nthreads''' : number of threads per cluster. 48 51 49 52 === '''void sqt_lock_acquire'''( sqt_lock_t * lock ) ===