Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Minor cleanup
  • Loading branch information
ian-plosker committed Feb 14, 2012
1 parent b22414b commit f2f00ac
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/stm.erl
Expand Up @@ -117,12 +117,6 @@ basic_test() ->
end),
?assert(Val3 == 3).

spawn_fun_n(_Fun, 0) -> ok;
spawn_fun_n(Fun, N) ->
%io:format("yo~n"),
spawn(Fun),
spawn_fun_n(Fun, N - 1).

sync_test() ->
initialize(),

Expand Down Expand Up @@ -151,6 +145,11 @@ sync_test() ->
Val = ?atomic(load_var(Var)),
?assertEqual(gather_successful_trans_count(10000), Val).

spawn_fun_n(_Fun, 0) -> ok;
spawn_fun_n(Fun, N) ->
spawn(Fun),
spawn_fun_n(Fun, N - 1).

gather_successful_trans_count(N) ->
gather_successful_trans_count(N, 0).

Expand Down

0 comments on commit f2f00ac

Please sign in to comment.