From b25b5b1966960a580293a0bdefcf8d290efe9b4d Mon Sep 17 00:00:00 2001 From: Adam Kocoloski Date: Thu, 21 Oct 2010 21:48:39 -0400 Subject: use erlang:send_after/3 instead of timer version http://www.erlang.org/doc/efficiency_guide/commoncaveats.html#id52228 --- apps/rexi/src/rexi_utils.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/rexi/src/rexi_utils.erl') diff --git a/apps/rexi/src/rexi_utils.erl b/apps/rexi/src/rexi_utils.erl index 79183951..1e8820e1 100644 --- a/apps/rexi/src/rexi_utils.erl +++ b/apps/rexi/src/rexi_utils.erl @@ -9,7 +9,7 @@ recv(Refs, Keypos, Fun, Acc0, infinity, PerMsgTO) -> process_mailbox(Refs, Keypos, Fun, Acc0, nil, PerMsgTO); recv(Refs, Keypos, Fun, Acc0, GlobalTimeout, PerMsgTO) -> TimeoutRef = erlang:make_ref(), - {ok, TRef} = timer:send_after(GlobalTimeout, {timeout, TimeoutRef}), + {ok, TRef} = erlang:send_after(GlobalTimeout, self(), {timeout, TimeoutRef}), try process_mailbox(Refs, Keypos, Fun, Acc0, TimeoutRef, PerMsgTO) after -- cgit v1.2.3