YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
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#include <string>
14
15namespace yarp::serversql::impl {
16
18{
19public:
20 bool needed {true};
21 bool positive {true};
22 int ct {0};
23 std::mutex& mutex;
24
25 std::string src;
26 std::string dest;
27
28 ConnectThread(std::mutex& mutex);
29
30 void run() override;
31};
32
33} // namespace yarp::serversql::impl
34
35
36#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.