Get it
Learn it
Advanced
#include <WorkerThreadsPool.h> enum queue_policy_t { POLICY_FIFO, POLICY_DROP_OLD, };
POLICY_FIFO
Default policy: all tasks are executed in FIFO order.
No drops.
POLICY_DROP_OLD
If a task arrives and there are more pending tasks than worker threads, drop previous tasks.