Browse files

Minor cleanup

  • Loading branch information...
1 parent b22414b commit f2f00acf743d6de2c2588bc0d8ad099cd4eaded9 @ian-plosker committed Feb 14, 2012
Showing with 5 additions and 6 deletions.
  1. +5 −6 src/stm.erl
View
11 src/stm.erl
@@ -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(),
@@ -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).

0 comments on commit f2f00ac

Please sign in to comment.