MOTION  0.01
Framework for mixed-protocol multi-party computation
Public Types | Public Member Functions | List of all members
encrypto::motion::FiberThreadPool Class Reference

#include <fiber_thread_pool.hpp>

Public Types

using task_t = std::function< void()>
 

Public Member Functions

 FiberThreadPool (std::size_t number_of_workers, std::size_t number_of_tasks=0, bool suspend_scheduler=true)
 
 ~FiberThreadPool ()
 
void post (task_t task)
 
void join ()
 
void join_fibers ()
 

Member Typedef Documentation

◆ task_t

using encrypto::motion::FiberThreadPool::task_t = std::function<void()>

Constructor & Destructor Documentation

◆ FiberThreadPool()

encrypto::motion::FiberThreadPool::FiberThreadPool ( std::size_t  number_of_workers,
std::size_t  number_of_tasks = 0,
bool  suspend_scheduler = true 
)

◆ ~FiberThreadPool()

encrypto::motion::FiberThreadPool::~FiberThreadPool ( )
Here is the call graph for this function:

Member Function Documentation

◆ join()

void encrypto::motion::FiberThreadPool::join ( )
Here is the caller graph for this function:

◆ join_fibers()

void encrypto::motion::FiberThreadPool::join_fibers ( )

◆ post()

void encrypto::motion::FiberThreadPool::post ( task_t  task)
Here is the caller graph for this function:

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