Send correct informations to a http tracker.
[tairent.git] / src / main / hashcheckerthread.h
blob856a256eae9bfc4c25ebccb6302b899e7e7a6b3d
1 /***************************************************************************
2 * *
3 * Copyright (C) 2006 David Brodsky *
4 * *
5 * This program is free software; you can redistribute it and/or *
6 * modify it under the terms of the GNU General Public License as *
7 * published by the Free Software Foundation and appearing *
8 * in the file LICENSE.GPL included in the packaging of this file. *
9 * *
10 * This program is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
13 * General Public License for more details. *
14 * *
15 ***************************************************************************/
17 #ifndef _main_hashcheckerthread_h
18 #define _main_hashcheckerthread_h
20 #include <tairon/core/thread.h>
22 namespace Tairent
25 namespace Main
28 /** \brief Thread for hash checking.
30 class HashCheckerThread : public Tairon::Core::Thread
32 public:
33 /** Constructs a HashCheckerThread object. It is still needed to call
34 * start() method to run the thread.
36 HashCheckerThread();
38 /** Destroys the thread.
40 virtual ~HashCheckerThread();
42 /** Main thread's loop. Just delivers signals to HashChecker objects.
44 virtual void *run();
46 /** Stops the thread's loop.
48 void stop() {
49 exit = true;
52 private:
53 /** Whether this thread should exit.
55 bool exit;
58 }; // namespace Main
60 }; // namespace Tairent
62 #endif
64 // vim: ai sw=4 ts=4 noet fdm=marker