INTRODUCTION
Overview
Download and Install
Documentation
Publications

REPOSITORY
Libraries

DEVELOPER
Dev Guide
Dashboard

PEOPLE
Contributors
Users

SourceForge.net Logo
Project
Download
Mailing lists

 

         
safethread.h
1/*
2 * GearBox Project: Peer-Reviewed Open-Source Libraries for Robotics
3 * http://gearbox.sf.net/
4 * Copyright (c) 2004-2010 Alex Brooks, Alexei Makarenko, Tobias Kaupp
5 *
6 * This distribution is licensed to you under the terms described in
7 * the LICENSE file included in this distribution.
8 *
9 */
10
11#ifndef GBXICEUTILACFR_SAFE_THREAD_H
12#define GBXICEUTILACFR_SAFE_THREAD_H
13
14#include <gbxsickacfr/gbxiceutilacfr/thread.h>
15#include <gbxutilacfr/tracer.h>
16
17namespace gbxiceutilacfr {
18
43class SafeThread : public Thread
44{
45public:
48
49 // from IceUtil::Thread (from which HydroUtil::Thread is derived)
52 virtual void run();
53
54private:
57 virtual void walk()=0;
58
59 gbxutilacfr::Tracer& tracer_;
60};
62typedef IceUtil::Handle<SafeThread> SafeThreadPtr;
63
64} // end namespace
65
66#endif
A version of the Thread class which catches all possible exceptions.
Definition: safethread.h:44
virtual void run()
Definition: safethread.cpp:26
SafeThread(gbxutilacfr::Tracer &tracer)
Needs an implementation of Tracer to report possible exceptions.
Definition: safethread.cpp:20
A minor extention of the IceUtil::Thread class.
Definition: thread.h:73
Definition: tracer.h:112
Utility namespace (part of SICK-ACFR driver)
Definition: buffer.h:21
IceUtil::Handle< SafeThread > SafeThreadPtr
A smart pointer to the SafeThread class.
Definition: safethread.h:62
 

Generated for GearBox by  doxygen 1.4.5