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