summaryrefslogtreecommitdiff
path: root/src/pmon.erl
diff options
context:
space:
mode:
authorJean-Sébastien Pédron <jean-sebastien@rabbitmq.com>2015-03-11 16:17:25 +0100
committerJean-Sébastien Pédron <jean-sebastien@rabbitmq.com>2015-03-11 16:17:25 +0100
commit17a5da8f085e4d4acb349fc41ceca0e923ac67d3 (patch)
tree6d3b51561ea384f3b51f477b05d91237ebe1f3e7 /src/pmon.erl
parente03e7da3115c54e8a7ca54ad3cc2c4c74f7ed417 (diff)
parent578cfc1916a4b6a8202b2f4698e35eb76942f061 (diff)
downloadrabbitmq-server-git-17a5da8f085e4d4acb349fc41ceca0e923ac67d3.tar.gz
Merge branch 'master' into stable
Diffstat (limited to 'src/pmon.erl')
-rw-r--r--src/pmon.erl13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/pmon.erl b/src/pmon.erl
index a94f5a67af..7981742284 100644
--- a/src/pmon.erl
+++ b/src/pmon.erl
@@ -16,6 +16,19 @@
-module(pmon).
+%% Process Monitor
+%% ================
+%%
+%% This module monitors processes so that every process has at most
+%% 1 monitor.
+%% Processes monitored can be dynamically added and removed.
+%%
+%% Unlike erlang:[de]monitor* functions, this module
+%% provides basic querying capability and avoids contacting down nodes.
+%%
+%% It is used to monitor nodes, queue mirrors, and by
+%% the queue collector, among other things.
+
-export([new/0, new/1, monitor/2, monitor_all/2, demonitor/2,
is_monitored/2, erase/2, monitored/1, is_empty/1]).