blob: 7d4e0905ef8c7ef0c909c0fa6160f7444bbc0c6a (
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 functions.
-module(whereis_diff_functions3).
-export([start/1]).
start(AnAtom) ->
register(AnAtom, race(AnAtom)).
race(Atom) ->
whereis(Atom).
|