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
yarp::serversql::impl::ConnectThread
Definition: ConnectThread.h:22
yarp::serversql::impl::ConnectThread::positive
bool positive
Definition: ConnectThread.h:25
yarp::serversql::impl::ConnectThread::dest
std::string dest
Definition: ConnectThread.h:30
yarp::os::Thread
An abstraction for a thread of execution.
Definition: Thread.h:25
yarp::serversql::impl::ConnectThread::needed
bool needed
Definition: ConnectThread.h:24
yarp::serversql::impl::ConnectThread::ct
int ct
Definition: ConnectThread.h:26
yarp::serversql::impl::ConnectThread::mutex
std::mutex & mutex
Definition: ConnectThread.h:27
yarp::serversql::impl::ConnectThread::src
std::string src
Definition: ConnectThread.h:29
yarp::serversql::impl::ConnectThread::ConnectThread
ConnectThread(std::mutex &mutex)
Definition: ConnectThread.cpp:22
Thread.h
yarp
The main, catch-all namespace for YARP.
Definition: environment.h:18
yarp::serversql::impl::ConnectThread::run
void run() override
Main body of the new thread.
Definition: ConnectThread.cpp:26