ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/GoogleTron/GoogleTron.cpp
(Generate patch)

Comparing GoogleTron/GoogleTron.cpp (file contents):
Revision 680 by douglas, 2006-03-06T00:40:40-08:00 vs.
Revision 681 by douglas, 2006-03-06T02:00:10-08:00

# Line 42 | Line 42 | int Main(const app::Options &options)
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()

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines