• Vladislav Vaintroub's avatar
    MDEV-16264: Add threadpool library · 00ee8d85
    Vladislav Vaintroub authored
    The library is capable of
    - asynchronous execution of tasks (and optionally waiting for them)
    - asynchronous file IO
      This is implemented using libaio on Linux and completion ports on
      Windows. Elsewhere, async io is "simulated", which means worker threads
      are performing synchronous IO.
    - timers, scheduling work asynchronously in some point of the future.
      Also periodic timers are implemented.
    00ee8d85
tpool.h 5.89 KB