YARP
Yet Another Robot Platform
SegFault.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-License-Identifier: BSD-3-Clause
4 */
5
6#ifndef YARP_SEGFAULT_SEGFAULT_H
7#define YARP_SEGFAULT_SEGFAULT_H
8
9#include <yarp/os/Thread.h>
11
17class SegFault :
19 public yarp::os::Thread
20{
21public:
22 SegFault();
23 SegFault(const SegFault&) = delete;
24 SegFault(SegFault&&) = delete;
25 SegFault& operator=(const SegFault&) = delete;
27
28 ~SegFault() override;
29
30 bool open(yarp::os::Searchable& config) override;
31 bool close() override;
32
33 void run() override;
34
35private:
36 yarp::conf::float64_t delay{1.0};
37};
38
39#endif // YARP_SEGFAULT_SEGFAULT_H
test_segfault: A test device that causes a segmentation fault.
Definition: SegFault.h:20
bool close() override
Close the DeviceDriver.
Definition: SegFault.cpp:38
bool open(yarp::os::Searchable &config) override
Open the DeviceDriver.
Definition: SegFault.cpp:25
SegFault & operator=(SegFault &&)=delete
SegFault(SegFault &&)=delete
void run() override
Main body of the new thread.
Definition: SegFault.cpp:43
SegFault()
Definition: SegFault.cpp:17
~SegFault() override
Definition: SegFault.cpp:21
SegFault & operator=(const SegFault &)=delete
SegFault(const SegFault &)=delete
Interface implemented by all device drivers.
Definition: DeviceDriver.h:30
A base class for nested structures that can be searched.
Definition: Searchable.h:63
An abstraction for a thread of execution.
Definition: Thread.h:21
double float64_t
Definition: numeric.h:77