Fawkes API  Fawkes Development Version
thread_collector.h
00001 
00002 /***************************************************************************
00003  *  thread_collector.h - Fawkes thread collector interface
00004  *                       based on previous ThreadManager
00005  *
00006  *  Created: Thu Jan 11 17:53:44 2007
00007  *  Copyright  2006-2007  Tim Niemueller [www.niemueller.de]
00008  *
00009  ****************************************************************************/
00010 
00011 /*  This program is free software; you can redistribute it and/or modify
00012  *  it under the terms of the GNU General Public License as published by
00013  *  the Free Software Foundation; either version 2 of the License, or
00014  *  (at your option) any later version. A runtime exception applies to
00015  *  this software (see LICENSE.GPL_WRE file mentioned below for details).
00016  *
00017  *  This program is distributed in the hope that it will be useful,
00018  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00019  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00020  *  GNU Library General Public License for more details.
00021  *
00022  *  Read the full text in the LICENSE.GPL_WRE file in the doc directory.
00023  */
00024 
00025 #ifndef __CORE_THREADING_THREAD_COLLECTOR_H_
00026 #define __CORE_THREADING_THREAD_COLLECTOR_H_
00027 
00028 namespace fawkes {
00029 
00030 
00031 class Thread;
00032 class ThreadList;
00033 
00034 class ThreadCollector
00035 {
00036  public:
00037   virtual ~ThreadCollector();
00038 
00039   virtual void add(ThreadList &tl)                                      = 0;
00040   virtual void add(Thread *t)                                           = 0;
00041 
00042   virtual void remove(ThreadList &tl)                                   = 0;
00043   virtual void remove(Thread *t)                                        = 0;
00044 
00045   virtual void force_remove(fawkes::ThreadList &tl)                     = 0;
00046   virtual void force_remove(fawkes::Thread *t)                          = 0;
00047 
00048 };
00049 
00050 
00051 } // end namespace fawkes
00052 
00053 #endif