cray_upc_thread_region_prologue
- Date:
04-03-2017
NAME
cray_upc_thread_region_prologue - Create a new thread region
SYNONPSYS
#include <upc_cray.h>
void cray_upc_thread_region_prologue (int *parent_tid);
IMPLEMENTATION
Cray Linux Environment (CLE)
DESCRIPTION
The cray_upc_thread_region_prologue function creates a new thread region and stores the current parent thread id into the provided integer. This function must be called before creating/allocating threads that will become members of the thread region. The value written in parent_tid should be treated as opaque and must be provided to the cray_upc_thread_region_begin function in child threads to register as members of the created thread region. It is valid for multiple thread regions to exist at the same time.
RETURN VALUES
None
SEE ALSO
cray_upc_thread_region_begin(3c), cray_upc_thread_region_end(3c), cray_upc_thread_region_epilogue(3c)