Page Speed Optimization Libraries  1.13.35.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Namespaces
queued_worker_pool.h File Reference
#include <cstddef>
#include <deque>
#include <set>
#include <vector>
#include "pagespeed/kernel/base/abstract_mutex.h"
#include "pagespeed/kernel/base/basictypes.h"
#include "pagespeed/kernel/base/function.h"
#include "pagespeed/kernel/base/scoped_ptr.h"
#include "pagespeed/kernel/base/string.h"
#include "pagespeed/kernel/base/string_util.h"
#include "pagespeed/kernel/base/thread_annotations.h"
#include "pagespeed/kernel/base/thread_system.h"
#include "pagespeed/kernel/thread/sequence.h"

Go to the source code of this file.

Classes

class  net_instaweb::QueuedWorkerPool
 
class  net_instaweb::QueuedWorkerPool::Sequence
 
class  net_instaweb::QueuedWorkerPool::Sequence::AddFunction
 

Namespaces

 net_instaweb
 Unit-test framework for wget fetcher.
 

Detailed Description

implements a simple worker pool, allowing arbitrary functions to run using a pool of threads of predefined maximum size.

This differs from QueuedWorker, which always uses exactly one thread. In this interface, any task can be assigned to any thread.