aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dialyzer/test/race_SUITE_data/src/whereis_diff_modules_twice/whereis_diff_modules2_twice.erl
blob: 390c0dcc9437180773a6a76e7f4ad946d3fa18c1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
%% This tests that the race condition detection between whereis/register
%% is robust w.r.t. having the calls in separate modules.

-module(whereis_diff_modules2_twice).
-export([race/2, race_again/2]).

race(Atom, Pid) ->
  register(Atom, Pid).

race_again(Atom, Pid) ->
  register(Atom, Pid).