cthreadpool · Section 3
cthrpool_future_done
NAME
cthrpool_future_done - non-blocking check for future completion
LIBRARY
C Collections (libccollections, -lccollections)
SYNOPSIS
#include <ccollections/cthreadpool.h> bool cthrpool_future_done(cthrpool_future *f);
DESCRIPTION
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.
PARAMETERS
f Future handle (NULL returns false)
RETURN VALUE
true if the future has a result or was cancelled, false otherwise.