YARP
Yet Another Robot Platform
ConnectThread.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_SERVERSQL_IMPL_CONNECTTHREAD_H
8#define YARP_SERVERSQL_IMPL_CONNECTTHREAD_H
9
10#include <yarp/os/Thread.h>
11
12#include <mutex>
13
14namespace yarp::serversql::impl {
15
17{
18public:
19 bool needed {true};
20 bool positive {true};
21 int ct {0};
22 std::mutex& mutex;
23
24 std::string src;
25 std::string dest;
26
27 ConnectThread(std::mutex& mutex);
28
29 void run() override;
30};
31
32} // namespace yarp::serversql::impl
33
34
35#endif // YARP_SERVERSQL_IMPL_CONNECTTHREAD_H
An abstraction for a thread of execution.
Definition: Thread.h:21
void run() override
Main body of the new thread.