42 |
|
return 0; |
43 |
|
} |
44 |
|
|
45 |
< |
GoogleTron::GoogleTron(const cse::String &sitemap) : working(true), sitemap(sitemap), output(new _H<api::Thread>(hop::BindAll(&GoogleTron::Output, this))) |
45 |
> |
GoogleTron::GoogleTron(const cse::String &sitemap) : working(true), sitemap(sitemap), output(hop::BindAll(&GoogleTron::Output, this)) |
46 |
|
{ |
47 |
|
// XXX: start some threads |
48 |
|
} |
49 |
|
|
50 |
|
GoogleTron::~GoogleTron() |
51 |
|
{ |
52 |
< |
// XXX: wait on threads |
53 |
< |
|
52 |
> |
threads.Join(); |
53 |
> |
|
54 |
|
working = false; |
55 |
|
|
56 |
< |
output->Join(); |
56 |
> |
output.Join(); |
57 |
|
} |
58 |
|
|
59 |
|
int GoogleTron::Output() |