YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
TypedReaderThread.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_TYPEDREADERTHREAD_H
8#define YARP_OS_TYPEDREADERTHREAD_H
9
10#include <yarp/os/Thread.h>
11
12namespace yarp::os {
13
14template <typename T>
15class TypedReader;
16
17template <typename T>
18class TypedReaderCallback;
19
20template <typename T>
22{
23public:
26
28
31
32 void run() override;
33
34 void onStop() override;
35};
36
37} // namespace yarp::os
38
40
41#endif // YARP_OS_TYPEDREADERTHREAD_H
A mini-server for performing network communication in the background.
An abstraction for a thread of execution.
Definition Thread.h:21
void onStop() override
Call-back, called while halting the thread (before join).
void run() override
Main body of the new thread.
TypedReaderCallback< T > * callback
An interface to the operating system, including Port based communication.