blob: 61252add9aa1865b8b875d33e61b8ed5fd379799 (
plain) (
tree)
|
|
%% This tests the presence of possible races due to a whereis/register
%% combination in higher order functions and inter-module calls.
-module(whereis_param_inter_module2).
-export([continue/2]).
continue(AnAtom, Fun) ->
case whereis(AnAtom) of
undefined ->
Pid = spawn(Fun);
P when is_pid(P) ->
P
end.
|