C Collections

cthreadpool · Section 3

cthrpool_future_done

cthrpool_future_done - non-blocking check for future completion

C Collections (libccollections, -lccollections)

#include <ccollections/cthreadpool.h>
 
bool cthrpool_future_done(cthrpool_future *f);

Tells you, without blocking, whether the task of the future has
finished (or was cancelled). It returns false while the task is still
pending or running.

f   Future handle (NULL returns false)

true if the future has a result or was cancelled, false otherwise.

cthrpool_future_get(3), cthrpool_future_cancelled(3)