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-2010 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 <gbxutilacfr/tracer.h> 00016 00017 namespace gbxiceutilacfr { 00018 00043 class SafeThread : public Thread 00044 { 00045 public: 00047 SafeThread( gbxutilacfr::Tracer& tracer ); 00048 00049 // from IceUtil::Thread (from which HydroUtil::Thread is derived) 00052 virtual void run(); 00053 00054 private: 00057 virtual void walk()=0; 00058 00059 gbxutilacfr::Tracer& tracer_; 00060 }; 00062 typedef IceUtil::Handle<SafeThread> SafeThreadPtr; 00063 00064 } // end namespace 00065 00066 #endif |