|
From: Tim R. <ti...@pr...> - 2017-09-12 18:06:17
|
Phani Kumar wrote:
>
> Kindly explain me why reap_for_handle is called in the following
> function in a loop?
>
> do {
> r = reap_for_handle(handle);
> } while (r == 0);
With the asynchronous interface, we can have many requests outstanding
on a single device. For efficiency sake, you should handle all that
have completed before going back to wait again.
--
Tim Roberts, ti...@pr...
Providenza & Boekelheide, Inc.
|