1 |
// Douglas Thrift |
2 |
// |
3 |
// Command |
4 |
// |
5 |
// $Id$ |
6 |
|
7 |
#ifndef _Command_hpp_ |
8 |
#define _Command_hpp_ |
9 |
|
10 |
#include <cxx/platform.hpp> |
11 |
|
12 |
#ifdef MENES_PRAGMA_ONCE |
13 |
#pragma once |
14 |
#endif |
15 |
|
16 |
#include <api/locks.hpp> |
17 |
|
18 |
#include <queue> // XXX: no ext::Queue yet :( |
19 |
|
20 |
#include "Url.hpp" |
21 |
|
22 |
class Command : public ext::ReferenceCounted {}; |
23 |
|
24 |
class CommandRunner |
25 |
{ |
26 |
protected: |
27 |
const cse::String &sitemap; |
28 |
std::queue<Url> &queue; |
29 |
api::ThreadMutex &queueLock; |
30 |
CommandRunner(const cse::String &sitemap, std::queue<Url> &queue, api::ThreadMutex &queueLock) : sitemap(sitemap), queue(queue), queueLock(queueLock) {} |
31 |
}; |
32 |
|
33 |
#endif//_Command_hpp_ |