#include "autopack.h" int AP_check_sends_proc(int pid, int flags)
Like AP_check_sends(), but only check sends to the given destination. If there are deferred messages to the destination, send as many as possible.
Flags may be one of the following:
AP_NOFLAGSDo not block (default)AP_BLOCKING
Block until the first MPI send request for the specified proc is complete, then check remaining ones without blocking.
Like AP_check_sends() but value only reflects sends deferred/waiting
for the specified processor.
I.e.
0 if all sends to the destination have completed.
If there are deferred sends to the destination, returns how many.
If there are no deferred sends to the destination, returns -1 times the number of incomplete MPI send requests.
(Note: packages are only counted as a single send.)