The upc_global_lock_alloc function

Synopsis

 
    #include <upc.h>
    upc_lock_t *upc_global_lock_alloc(void);                      

Description

The upc_global_lock_alloc function dynamically allocates a lock and returns a pointer to it. The lock is created in an unlocked state.

The upc_global_lock_alloc function is not a collective function. If called by multiple threads, all threads which make the call get different allocations.

 

 

Terms, definitions, and symbols

Back to index of all UPC functions