aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dialyzer/test/race_tests_SUITE_data/src/whereis_param_inter_module/whereis_param_inter_module1.erl
blob: ab7c9b4cf9269665877fd1cc2674de3e8581a022 (plain) (blame)
1
2
3
4
5
6
7
8
9
%% 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)).