Public Types | Public Member Functions | List of all members
ThreadPool< InputToken, OutputToken, TaskContext > Class Template Reference

Public Types

using TaskFunc = void(*)(SpscQueue< InputToken > *, SpscQueue< OutputToken > *, const TaskContext *)

Public Member Functions

 ThreadPool (int num_worker, const TaskContext *context, TaskFunc task)
void SubmitTask (int tid, InputToken request)
bool WaitForTask (int tid, OutputToken *response)

Detailed Description

template<typename InputToken, typename OutputToken, typename TaskContext>
class treelite::ThreadPool< InputToken, OutputToken, TaskContext >

Definition at line 24 of file thread_pool.h.

The documentation for this class was generated from the following file: