aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dialyzer/test/race_tests_SUITE_data/src/whereis_diff_modules_twice/whereis_diff_modules2_twice.erl
blob: afe5214648859884ba3d6a85f74400f732f058e5 (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).