upc_threadof function
#include <upc.h>
size_t upc_threadof(shared void *ptr);
The upc_threadof function returns the index of the thread that has affinity
to the shared object pointed to by ptr.
If ptr is a null pointer-to-shared, the function returns 0.