YARP
Yet Another Robot Platform
Runnable.h
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
#ifndef YARP_OS_RUNNABLE_H
11
#define YARP_OS_RUNNABLE_H
12
13
#include <
yarp/conf/system.h
>
14
15
#if !defined(YARP_INCLUDING_DEPRECATED_HEADER_ON_PURPOSE)
16
YARP_COMPILER_WARNING
(
"<yarp/os/Runnable.h> file is deprecated"
)
17
#endif
18
19
#ifndef YARP_NO_DEPRECATED // Since YARP 3.3
20
21
#include <
yarp/os/api.h
>
22
23
namespace
yarp
{
24
namespace
os {
25
31
class
YARP_os_DEPRECATED_API
Runnable
32
{
33
public
:
37
virtual
~Runnable
();
38
42
virtual
void
run();
43
48
virtual
void
close();
49
54
virtual
void
beforeStart();
55
60
virtual
void
afterStart(
bool
success);
61
73
virtual
bool
threadInit();
74
81
virtual
void
threadRelease();
82
};
83
84
}
// namespace os
85
}
// namespace yarp
86
87
#endif // YARP_NO_DEPRECATED
88
89
#endif // YARP_OS_RUNNABLE_H
api.h
yarp::os::Runnable
A class that can be managed by another thread.
Definition:
Runnable.h:32
YARP_os_DEPRECATED_API
#define YARP_os_DEPRECATED_API
Definition:
api.h:22
yarp::os::Runnable::~Runnable
virtual ~Runnable()
Destructor.
system.h
yarp
The main, catch-all namespace for YARP.
Definition:
environment.h:18
YARP_COMPILER_WARNING
#define YARP_COMPILER_WARNING(x)
Generate a warning at build time on supported compilers.
Definition:
system.h:112
YARP
3.4.100+20201223.2+gitb8ea4d712
src
libYARP_os
src
yarp
os
Runnable.h
Generated on Sun Jan 3 2021 02:46:25 for YARP by
1.8.20