Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

ActiveSelector.h

Go to the documentation of this file.
00001 /* Copyright (C) 2002 Carsten Griwodz 00002 * 00003 * You are allowed to use all other parts of the code under the following terms: 00004 * 00005 * For non-commercial use, this code may be used in unmodified form 00006 * provided that this copyright notice and this permission notice appear 00007 * in supporting documentation. 00008 * 00009 * The code may be made subject to the terms of the GNU General Public 00010 * License, Version 2, and re-distributed under the terms of this license. 00011 * 00012 * Commercial use other than under the terms of the GNU General Public 00013 * License is allowed only after negotiation of conditions with the authors. 00014 */ 00015 #ifndef ACTIVE_SELECTOR_H 00016 #define ACTIVE_SELECTOR_H 00017 00018 #include "MNSelector.h" 00019 #include "MNThread.h" 00020 #include "MNMutex.h" 00021 00034 class ActiveSelector : public MNSelector, public MNThread 00035 { 00036 public: 00037 ActiveSelector( const char* originator ); 00038 00039 virtual ~ActiveSelector( ); 00040 00041 virtual void run( ); 00042 00043 void end( ); 00044 00045 private: 00046 ActiveSelector( const ActiveSelector& ); 00047 ActiveSelector& operator=( const ActiveSelector& ); 00048 00049 MNMutex _end_lock; 00050 bool _ended; 00051 bool _started; 00052 mnthread_t _id; 00053 }; 00054 00055 #endif /* ACTIVE_SELECTOR_H */ 00056

Generated on Sun Mar 6 13:35:49 2005 for Komssys by doxygen 1.3.8