WPILibC++
unspecified
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
NetworkListener.h
1
/*----------------------------------------------------------------------------*/
2
/* Copyright (c) 2015-2018 FIRST. All Rights Reserved. */
3
/* Open Source Software - may be modified and shared by FRC teams. The code */
4
/* must be accompanied by the FIRST BSD license file in the root directory of */
5
/* the project. */
6
/*----------------------------------------------------------------------------*/
7
8
#ifndef CSCORE_NETWORKLISTENER_H_
9
#define CSCORE_NETWORKLISTENER_H_
10
11
#include <wpi/SafeThread.h>
12
13
namespace
cs
{
14
15
class
NetworkListener
{
16
public
:
17
static
NetworkListener
& GetInstance() {
18
static
NetworkListener
instance;
19
return
instance;
20
}
21
~
NetworkListener
();
22
23
void
Start();
24
void
Stop();
25
26
private
:
27
NetworkListener
() =
default
;
28
29
class
Thread
;
30
wpi::SafeThreadOwner<Thread>
m_owner;
31
};
32
33
}
// namespace cs
34
35
#endif // CSCORE_NETWORKLISTENER_H_
cs
Definition:
CvSourceImpl.h:19
wpi::SafeThreadOwner< Thread >
cs::NetworkListener::Thread
Definition:
NetworkListener.cpp:28
cs::NetworkListener
Definition:
NetworkListener.h:15
build
cppSource
cscore-cpp
sources
NetworkListener.h
Generated on Sun Jul 1 2018 15:46:15 for WPILibC++ by
1.8.11