summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2015-02-04 12:10:13 +0000
committerSimon MacMullen <simon@rabbitmq.com>2015-02-04 12:10:13 +0000
commitc8563b522add0529708b1bea3956f604845b73a3 (patch)
treec8a47eda32bb73d766929fab0f393447a60b3f64
parent0688423a2d506d599608d94ba7231864592d1427 (diff)
downloadrabbitmq-server-git-c8563b522add0529708b1bea3956f604845b73a3.tar.gz
And a bit more.
-rw-r--r--src/worker_pool.erl4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/worker_pool.erl b/src/worker_pool.erl
index eb8c1dc6b8..71359aa5ed 100644
--- a/src/worker_pool.erl
+++ b/src/worker_pool.erl
@@ -22,6 +22,10 @@
%% (using worker_pool:submit/1, worker_pool:submit/2) or synchronously
%% (using worker_pool:submit_async/1).
%%
+%% We typically use the worker pool if we want to limit the maximum
+%% parallelism of some job. We are not trying to dodge the cost of
+%% creating Erlang processes.
+%%
%% Supports nested submission of jobs and two execution modes:
%% 'single' and 'reuse'. Jobs executed in 'single' mode are invoked in
%% a one-off process. Those executed in 'reuse' mode are invoked in a