libabigail
Classes | Namespaces | Typedefs | Functions
abg-workers.h File Reference

This file declares an interface for the worker threads (or thread pool) design pattern. It aims at performing a set of tasks in parallel, using the multi-threading capabilities of the underlying processor(s). More...

#include <memory>
#include <vector>
Include dependency graph for abg-workers.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  queue
 This represents a queue of tasks to be performed. More...
 
struct  queue::task_done_notify
 This functor is to notify listeners that a given task scheduled for execution has been fully executed. More...
 
class  task
 This represents a task to be performed. More...
 

Namespaces

 abigail
 Toplevel namespace for libabigail.
 
 abigail::workers
 The namespace of the worker threads (or thread pool) implementation of libabigail. This was modelled after the article https://en.wikipedia.org/wiki/Thread_pool.
 

Typedefs

typedef shared_ptr< task > task_sptr
 

Functions

size_t get_number_of_threads ()
 

Detailed Description

This file declares an interface for the worker threads (or thread pool) design pattern. It aims at performing a set of tasks in parallel, using the multi-threading capabilities of the underlying processor(s).

Definition in file abg-workers.h.