YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
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>
12
20class SegFault :
22 public yarp::os::Thread,
24{
25public:
26 SegFault();
27 SegFault(const SegFault&) = delete;
28 SegFault(SegFault&&) = delete;
29 SegFault& operator=(const SegFault&) = delete;
31
32 ~SegFault() override;
33
34 bool open(yarp::os::Searchable& config) override;
35 bool close() override;
36
37 void run() override;
38
39};
40
41#endif // YARP_SEGFAULT_SEGFAULT_H
This class is the parameters parser for class SegFault.
test_segfault: A test device that causes a segmentation fault.
Definition SegFault.h:24
bool close() override
Close the DeviceDriver.
Definition SegFault.cpp:36
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:41
~SegFault() override
Definition SegFault.cpp:21
SegFault & operator=(const SegFault &)=delete
SegFault(const SegFault &)=delete
Interface implemented by all device drivers.
A base class for nested structures that can be searched.
Definition Searchable.h:31
An abstraction for a thread of execution.
Definition Thread.h:21