Table of Contents


qt_sinc_wait - block caller until all expected submissions are submitted


#include <qthread/sinc.h>

qt_sinc_wait (qt_sinc_t *restrict sinc,
void *restrict target);


This functions blocks the calling task until the specified sinc has received all of the submissions it expects. The number of expected submissions is permitted to increase while the calling thread is blocked, and will only increase the length of time the caller will block. Just before the calling task is released, if the sinc was initialized to perform a reduction operation, the result of that operation will be copied into the memory specified by target. The number of bytes copied was specified when the sinc was initialized.

See Also

qt_sinc_create(3) , qt_sinc_destroy(3) , qt_sinc_expect(3) , qt_sinc_fini(3) , qt_sinc_init(3) , qt_sinc_reset(3) , qt_sinc_submit(3)

Table of Contents