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 
14 namespace yarp {
15 namespace serversql {
16 namespace impl {
17 
19 {
20 public:
21  bool needed {true};
22  bool positive {true};
23  int ct {0};
24  std::mutex& mutex;
25 
26  std::string src;
27  std::string dest;
28 
29  ConnectThread(std::mutex& mutex);
30 
31  void run() override;
32 };
33 
34 } // namespace impl
35 } // namespace serversql
36 } // namespace yarp
37 
38 
39 #endif // YARP_SERVERSQL_IMPL_CONNECTTHREAD_H
An abstraction for a thread of execution.
Definition: Thread.h:22
void run() override
Main body of the new thread.
The main, catch-all namespace for YARP.
Definition: dirs.h:16