Waits for a variable on the local processing element (PE) to change.
#include <shmem.h> void shmem_wait(long *ivar, long value);
This function is used for point-to-point synchronization. It suspends the execution of the calling PE until the value of the symmetric variable var is changed
The function shmem_wait() blocks the calling PE until some remote PE writes a long value, not equal to value, into var on the waiting PE.
Subroutines: shmem_put