YARP
Yet Another Robot Platform
Runnable.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-FileCopyrightText: 2006-2010 RobotCub Consortium
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#ifndef YARP_OS_RUNNABLE_H
8#define YARP_OS_RUNNABLE_H
9
10#include <yarp/conf/system.h>
11
12#if !defined(YARP_INCLUDING_DEPRECATED_HEADER_ON_PURPOSE)
13YARP_COMPILER_WARNING("<yarp/os/Runnable.h> file is deprecated")
14#endif
15
16#ifndef YARP_NO_DEPRECATED // Since YARP 3.3
17
18#include <yarp/os/api.h>
19
20namespace yarp::os {
21
28{
29public:
33 virtual ~Runnable();
34
38 virtual void run();
39
44 virtual void close();
45
50 virtual void beforeStart();
51
56 virtual void afterStart(bool success);
57
69 virtual bool threadInit();
70
77 virtual void threadRelease();
78};
79
80} // namespace yarp::os
81
82#endif // YARP_NO_DEPRECATED
83
84#endif // YARP_OS_RUNNABLE_H
A class that can be managed by another thread.
Definition: Runnable.h:28
virtual ~Runnable()
Destructor.
An interface to the operating system, including Port based communication.
#define YARP_COMPILER_WARNING(x)
Generate a warning at build time on supported compilers.
Definition: system.h:111
#define YARP_os_DEPRECATED_API
Definition: api.h:20