Fawkes API  Fawkes Development Version
thread_collector.h
1 
2 /***************************************************************************
3  * thread_collector.h - Fawkes thread collector interface
4  * based on previous ThreadManager
5  *
6  * Created: Thu Jan 11 17:53:44 2007
7  * Copyright 2006-2007 Tim Niemueller [www.niemueller.de]
8  *
9  ****************************************************************************/
10 
11 /* This program is free software; you can redistribute it and/or modify
12  * it under the terms of the GNU General Public License as published by
13  * the Free Software Foundation; either version 2 of the License, or
14  * (at your option) any later version. A runtime exception applies to
15  * this software (see LICENSE.GPL_WRE file mentioned below for details).
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU Library General Public License for more details.
21  *
22  * Read the full text in the LICENSE.GPL_WRE file in the doc directory.
23  */
24 
25 #ifndef __CORE_THREADING_THREAD_COLLECTOR_H_
26 #define __CORE_THREADING_THREAD_COLLECTOR_H_
27 
28 namespace fawkes {
29 
30 
31 class Thread;
32 class ThreadList;
33 
35 {
36  public:
37  virtual ~ThreadCollector();
38 
39  virtual void add(ThreadList &tl) = 0;
40  virtual void add(Thread *t) = 0;
41 
42  virtual void remove(ThreadList &tl) = 0;
43  virtual void remove(Thread *t) = 0;
44 
45  virtual void force_remove(fawkes::ThreadList &tl) = 0;
46  virtual void force_remove(fawkes::Thread *t) = 0;
47 
48 };
49 
50 
51 } // end namespace fawkes
52 
53 #endif
Fawkes library namespace.
Thread collector.
virtual ~ThreadCollector()
Empty virtual destructor.
Thread class encapsulation of pthreads.
Definition: thread.h:42
List of threads.
Definition: thread_list.h:57
virtual void force_remove(fawkes::ThreadList &tl)=0
Force removal of multiple threads.
virtual void add(ThreadList &tl)=0
Add multiple threads.