aboutsummaryrefslogblamecommitdiffstats
path: root/lib/dialyzer/test/race_SUITE_data/src/whereis_diff_functions3.erl
blob: 093f02a06f625b0b027e5547a97965147a6211dd (plain) (tree)
1
2
3
4
5
6
7
8
9








                                                                        
             
                
%% This tests that the race condition detection between whereis/register
%% is robust w.r.t. having the calls in separate functions.

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

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

race(Atom) ->
  whereis(Atom).