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 696 by douglas, 2006-03-10T00:08:31-08:00 vs.
Revision 698 by douglas, 2006-03-12T19:28:22-08:00

# Line 59 | Line 59 | int Main(const app::Options &options)
59  
60   GoogleTron::GoogleTron(const cse::String &sitemap, const cse::String &base, const _L<_R<Command> > &commands) : working(true), sitemap(sitemap), base(base), output(hop::BindAll(&GoogleTron::Output, this))
61   {
62 +        api::Apr::CheckError(::apr_initialize());
63 +
64          _foreach (const _L<_R<Command> >, command_, commands)
65                  if (_R<FileSystemCommand> command = dynamic_cast<FileSystemCommand *>(command_->GetValue()))
66                          threads.Add(hop::BindAll(&GoogleTron::FileSystem_, this, command));
# Line 75 | Line 77 | GoogleTron::~GoogleTron()
77          working = false;
78  
79          output.Join();
80 +
81 +        ::apr_terminate();
82   }
83  
84   int GoogleTron::Output()

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines