aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dialyzer/test/race_tests_SUITE_data/src/whereis_diff_modules2/whereis_diff_modules3.erl
blob: 60b5a1d3780dbbcd2455ba1c816c1c8420f5b04a (plain) (blame)
1
2
3
4
5
6
7
8
%% This tests that the race condition detection between whereis/register
%% is robust w.r.t. having the calls in separate modules.

-module(whereis_diff_modules3).
-export([start/1]).

start(AnAtom) ->
  register(AnAtom, whereis_diff_modules4:race(AnAtom)).