DOKK / manpages / debian 12 / libowfat-dev / iom_abort.3.en
iom_abort(3) Library Functions Manual iom_abort(3)

iom_abort - abort all pending iom_wait calls

#include <libowfat/io.h>

int iom_abort(iomux_t* c);

iom_abort will cause all currently running instances of iom_wait to return immediately with return value -2.

You may have to add -lpthread to the command line in the linking step.

iom_abort returns 0 on success and -1 on error, setting errno.

iom_init, iom_add, iom_wait