INTRODUCTION Overview Download and Install Documentation Publications REPOSITORY Libraries DEVELOPER Dev Guide Dashboard PEOPLE Contributors Users Project Download Mailing lists
|
safethread.h00001 /* 00002 * GearBox Project: Peer-Reviewed Open-Source Libraries for Robotics 00003 * http://gearbox.sf.net/ 00004 * Copyright (c) 2004-2008 Alex Brooks, Alexei Makarenko, Tobias Kaupp 00005 * 00006 * This distribution is licensed to you under the terms described in 00007 * the LICENSE file included in this distribution. 00008 * 00009 */ 00010 00011 #ifndef GBXICEUTILACFR_SAFE_THREAD_H 00012 #define GBXICEUTILACFR_SAFE_THREAD_H 00013 00014 #include <gbxsickacfr/gbxiceutilacfr/thread.h> 00015 #include <gbxsickacfr/gbxutilacfr/tracer.h> 00016 00017 namespace gbxsickacfr { 00018 namespace gbxiceutilacfr { 00019 00044 class SafeThread : public Thread 00045 { 00046 public: 00048 SafeThread( gbxsickacfr::gbxutilacfr::Tracer& tracer ); 00049 00050 // from IceUtil::Thread (from which HydroUtil::Thread is derived) 00053 virtual void run(); 00054 00057 virtual void walk()=0; 00058 00059 private: 00060 gbxsickacfr::gbxutilacfr::Tracer& tracer_; 00061 }; 00063 typedef IceUtil::Handle<SafeThread> SafeThreadPtr; 00064 00065 } 00066 } // end namespace 00067 00068 #endif |