summaryrefslogtreecommitdiff
path: root/lib/dialyzer/test/race_SUITE_data/src/whereis_param_inter_module/whereis_param_inter_module1.erl
blob: 8bac0326a58d554fa8647389dbb0b89b994b0dc3 (plain)
1
2
3
4
5
6
7
8
%% 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_module1).
-export([start/2]).

start(AnAtom, Fun) ->
  register(AnAtom, whereis_param_inter_module2:continue(AnAtom, Fun)).