Changes between Version 12 and Version 13 of library_locks


Ignore:
Timestamp:
Sep 27, 2015, 2:25:50 PM (10 years ago)
Author:
alain
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • library_locks

    v12 v13  
    4343 * The number of involved tasks in a given cluster is the same for all involved clusters.
    4444
    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 ) ===
     46This 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).
    4747 * '''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.
    4851
    4952 === '''void sqt_lock_acquire'''( sqt_lock_t * lock ) ===