DebugServer2
Loading...
Searching...
No Matches
Headers
DebugServer2
Core
SessionThread.h
1
//
2
// Copyright (c) 2014-present, Facebook, Inc.
3
// All rights reserved.
4
//
5
// This source code is licensed under the University of Illinois/NCSA Open
6
// Source License found in the LICENSE file in the root directory of this
7
// source tree. An additional grant of patent rights can be found in the
8
// PATENTS file in the same directory.
9
//
10
11
#ifndef __SessionThread_h
12
#define __SessionThread_h
13
14
#include "DebugServer2/GDBRemote/PacketProcessor.h"
15
#include "DebugServer2/GDBRemote/Session.h"
16
#include "DebugServer2/Host/QueueChannel.h"
17
18
#include <thread>
19
20
class
SessionThread
:
public
ds2::GDBRemote::PacketProcessorDelegate
{
21
private
:
22
ds2::Host::QueueChannel
*_channel;
23
ds2::GDBRemote::Session
*_session;
24
ds2::GDBRemote::PacketProcessor
_pp;
25
std::thread _thread;
26
27
public
:
28
SessionThread
(
ds2::Host::QueueChannel
*channel,
29
ds2::GDBRemote::Session
*session);
30
~SessionThread
();
31
32
public
:
33
void
start();
34
35
protected
:
36
void
onPacketData(std::string
const
&data,
bool
valid)
override
;
37
void
onInvalidData(std::string
const
&data)
override
;
38
39
private
:
40
void
run();
41
};
42
43
#endif
// !__SessionThread_h
SessionThread
Definition
SessionThread.h:20
ds2::GDBRemote::PacketProcessor
Definition
PacketProcessor.h:20
ds2::GDBRemote::Session
Definition
Session.h:22
ds2::Host::QueueChannel
Definition
QueueChannel.h:22
ds2::GDBRemote::PacketProcessorDelegate
Definition
PacketProcessor.h:51
Generated by
1.12.0