YARP
Yet Another Robot Platform
Runnable.cpp
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2006-2020 Istituto Italiano di Tecnologia (IIT)
3  * Copyright (C) 2006-2010 RobotCub Consortium
4  * All rights reserved.
5  *
6  * This software may be modified and distributed under the terms of the
7  * BSD-3-Clause license. See the accompanying LICENSE file for details.
8  */
9 
10 #define YARP_INCLUDING_DEPRECATED_HEADER_ON_PURPOSE
11 #include <yarp/os/Runnable.h>
12 #undef YARP_INCLUDING_DEPRECATED_HEADER_ON_PURPOSE
13 
16 
18 
20 {
21 }
22 
24 {
25 }
26 
28 {
29 }
30 
32 {
33  YARP_UNUSED(success);
34 }
35 
37 {
38  return true;
39 }
40 
42 {
43 }
44 
YARP_WARNING_PUSH
#define YARP_WARNING_PUSH
Starts a temporary alteration of the enabled warnings.
Definition: system.h:334
yarp::os::Runnable::afterStart
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:31
Runnable.h
yarp::os::Runnable::threadInit
virtual bool threadInit()
Initialization method.
Definition: Runnable.cpp:36
yarp::os::Runnable::threadRelease
virtual void threadRelease()
Release method.
Definition: Runnable.cpp:41
YARP_UNUSED
#define YARP_UNUSED(var)
Definition: api.h:159
yarp::os::Runnable::~Runnable
virtual ~Runnable()
Destructor.
yarp::os::Runnable::beforeStart
virtual void beforeStart()
Should be called from the creator before the thread exists and before a call that requested the threa...
Definition: Runnable.cpp:27
YARP_WARNING_POP
#define YARP_WARNING_POP
Ends a temporary alteration of the enabled warnings.
Definition: system.h:335
yarp::os::Runnable::close
virtual void close()
User-defined procedure for stopping execution.
Definition: Runnable.cpp:23
YARP_DISABLE_DEPRECATED_WARNING
#define YARP_DISABLE_DEPRECATED_WARNING
Disable deprecated warnings in the following code.
Definition: system.h:336
yarp::os::Runnable::run
virtual void run()
Body to run - could be periodic or continuous.
Definition: Runnable.cpp:19