aboutsummaryrefslogtreecommitdiff
path: root/src/eco_tb.erl
blob: 82119f6d609e065d3a4ea62c8d2bca96844c2e43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
-module(eco_tb).
-export([start/0]).

start() ->
  Watcher = spawn(eco_watcher, watcher, [self()]),
	Pool = spawn(eco_pool, start_pool, [[1,1,1]]),
	Proc1 = spawn(eco_proc, proc, [Watcher, [1], [], Pool, 3, 3]),
	_Ticker = spawn(eco_time, ticker, [Watcher, 1000, [Proc1], 3000]),
  receive
    {error, notock, _, _} ->
      init:stop()
  end.