GitHub - rkaehn/cr_task.h: Header-only library for asynchronous tasks in C
cr_task.h
This library provides a minimal set of types and functions for an asynchronous task system in C.
It was designed to be lock-free in the common case, with locks only needed for allocations of backing memory for the task pool and when the worker threads are starved for tasks to execute. It is written in standard C11 with no dependencies besides the C POSIX library.
To get started, create an executor with the desired number of worker threads and define a task.
cr_executor_t* exec = cr_exe...
Read more at github.com