ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/GoogleTron/GoogleTron.hpp
Revision: 677
Committed: 2006-03-04T07:11:04-08:00 (19 years, 4 months ago) by douglas
File size: 572 byte(s)
Log Message:
I should probably go to sleep now...

File Contents

# User Rev Content
1 douglas 676 // Google Tron
2     //
3     // Douglas Thrift
4     //
5     // $Id$
6    
7     #ifndef _GoogleTron_hpp_
8     #define _GoogleTron_hpp_
9    
10     #include <cxx/platform.hpp>
11    
12     #ifdef MENES_PRAGMA_ONCE
13     #pragma once
14     #endif
15    
16     #include <api/threads.hpp>
17 douglas 677 #include <api/locks.hpp>
18 douglas 676
19 douglas 677 #include <queue> // XXX: no ext::Queue yet :(
20 douglas 676
21     #include "Url.hpp"
22    
23     class GoogleTron
24     {
25 douglas 677 bool working;
26     const cse::String &sitemap;
27 douglas 676 // XXX: I want ext::Queue!
28     std::queue<Url> queue;
29 douglas 677 api::ThreadMutex queueLock;
30 douglas 676 _R<api::Thread> output;
31     int Output();
32     public:
33 douglas 677 GoogleTron(const cse::String &sitemap);
34 douglas 676 ~GoogleTron();
35     };
36    
37     #endif//_GoogleTron_hpp_

Properties

Name Value
svn:eol-style native
svn:keywords Id