1
%% This tests that the race condition detection between ets:lookup/
2
%% ets:insert is robust even when the functions are called with
3
%% different atoms as arguments.
5
-module(ets_insert_diff_atoms_race1).
9
ets:new(foo, [named_table, public]),
10
{race(foo), no_race(foo)}.
13
[{_, N}] = ets:lookup(Tab, counter),
17
[{_, N}] = ets:lookup(Tab, counter),
22
ets:insert(Table, [{counter, N+1}]).