00001 #include "Device.h" 00002 00003 namespace rwil { 00005 class RWIL : public Thread 00006 { 00007 public: 00009 RWIL(); 00011 MessageList input; 00013 MessageList output; 00014 00016 00020 void AddDevice(Device *dev); 00022 00026 Device *GetDevice(std::string name); 00028 00032 void RemoveDevice(std::string name); 00034 virtual void Function(); 00036 00040 void Kill(); 00041 private: 00043 std::list<Device *> m_devices; 00045 Mutex m_mutex; 00047 bool m_die; 00048 }; 00049 }