enum mrpt::system::WorkerThreadsPool::queue_policy_t

Overview

#include <WorkerThreadsPool.h>

enum queue_policy_t
{
    POLICY_FIFO,
    POLICY_DROP_OLD,
};

Detailed Documentation

Enum Values

POLICY_FIFO

Default policy: all tasks are executed in FIFO order.

POLICY_DROP_OLD

If a task arrives and there are more pending tasks than worker threads, drop previous tasks.