YARP
Yet Another Robot Platform
Runnable.cpp
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 #define YARP_INCLUDING_DEPRECATED_HEADER_ON_PURPOSE
8 #include <yarp/os/Runnable.h>
9 #undef YARP_INCLUDING_DEPRECATED_HEADER_ON_PURPOSE
10 
13 
15 
17 {
18 }
19 
21 {
22 }
23 
25 {
26 }
27 
29 {
30  YARP_UNUSED(success);
31 }
32 
34 {
35  return true;
36 }
37 
39 {
40 }
41 
virtual ~Runnable()
Destructor.
virtual void close()
User-defined procedure for stopping execution.
Definition: Runnable.cpp:20
virtual bool threadInit()
Initialization method.
Definition: Runnable.cpp:33
virtual void run()
Body to run - could be periodic or continuous.
Definition: Runnable.cpp:16
virtual void afterStart(bool success)
Should be called from the creator after the thread exists and before a call that requested the thread...
Definition: Runnable.cpp:28
virtual void beforeStart()
Should be called from the creator before the thread exists and before a call that requested the threa...
Definition: Runnable.cpp:24
virtual void threadRelease()
Release method.
Definition: Runnable.cpp:38
#define YARP_WARNING_POP
Ends a temporary alteration of the enabled warnings.
Definition: system.h:332
#define YARP_WARNING_PUSH
Starts a temporary alteration of the enabled warnings.
Definition: system.h:331
#define YARP_DISABLE_DEPRECATED_WARNING
Disable deprecated warnings in the following code.
Definition: system.h:333
#define YARP_UNUSED(var)
Definition: api.h:162