upc_thread_info

Date:

07-07-2014

NAME

upc_thread_info - Returns information about the castability of pointers to objects with affinity to the calling thread.

SYNOPSIS

#include <upc.h>
#include <upc_castable.h>
upc_thread_info_t upc_thread_info(size_t threadId);

IMPLEMENTATION

Cray Linux Environment (CLE)

DESCRIPTION

The upc_thread_info function returns a structure that contains coded values indicating memory regions. If the flag for a region is set, any pointer into that region, with affinity to threadId is castable. This function returns information in a upc_thread_info_t structure, defined in upc_castable.h:

  • int guaranteedCastable

  • Indicates which memory regions are guaranteed to be castable. If the flag for a memory region is set in this field, any pointer into the indicated region, with affinity to threadId, is guaranteed to be castable.

  • int probablyCastable

  • Indicates which memory regions are likely to be castable. If the flag for a memory region is set in this field, any pointer into the indicated region, with affinity to threadId, is likely to be castable, but not guaranteed to be.

SEE ALSO

upc_cast(3c), upc_castable(3c).