summaryrefslogtreecommitdiff
path: root/src/couchdb/couch_ref_counter.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/couchdb/couch_ref_counter.erl')
-rw-r--r--src/couchdb/couch_ref_counter.erl8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/couchdb/couch_ref_counter.erl b/src/couchdb/couch_ref_counter.erl
index 0fbec729..59ede9c9 100644
--- a/src/couchdb/couch_ref_counter.erl
+++ b/src/couchdb/couch_ref_counter.erl
@@ -18,11 +18,11 @@
start(ChildProcs) ->
gen_server:start(couch_ref_counter, {self(), ChildProcs}, []).
-
-
+
+
drop(RefCounterPid) ->
drop(RefCounterPid, self()).
-
+
drop(RefCounterPid, Pid) ->
gen_server:cast(RefCounterPid, {drop, Pid}).
@@ -42,7 +42,7 @@ count(RefCounterPid) ->
{
referrers=dict:new() % a dict of each ref counting proc.
}).
-
+
init({Pid, ChildProcs}) ->
[link(ChildProc) || ChildProc <- ChildProcs],
Referrers = dict:from_list([{Pid, {erlang:monitor(process, Pid), 1}}]),