Bumping reductions manually will not be supported in future releases of the

BEAM and has dubious value anyway.  Remove that and ignore queue depth for
now.
This commit is contained in:
Gregory Burd 2013-04-02 09:37:49 -04:00
parent 609676917d
commit 254891e776

View file

@ -25,8 +25,7 @@
begin begin
NIFRef = erlang:make_ref(), NIFRef = erlang:make_ref(),
case erlang:apply(Fun, [NIFRef|Args]) of case erlang:apply(Fun, [NIFRef|Args]) of
{ok, {enqueued, QDepth}} -> {ok, {enqueued, _QDepth}} ->
[erlang:bump_reductions(10 * QDepth) || is_integer(QDepth), QDepth > 100],
receive receive
{NIFRef, {error, shutdown}=Error} -> {NIFRef, {error, shutdown}=Error} ->
%% Work unit was queued, but not executed. %% Work unit was queued, but not executed.