DebugServer2
Loading...
Searching...
No Matches
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
21private:
25 std::thread _thread;
26
27public:
31
32public:
33 void start();
34
35protected:
36 void onPacketData(std::string const &data, bool valid) override;
37 void onInvalidData(std::string const &data) override;
38
39private:
40 void run();
41};
42
43#endif // !__SessionThread_h
Definition SessionThread.h:20
Definition PacketProcessor.h:20
Definition Session.h:22
Definition QueueChannel.h:22
Definition PacketProcessor.h:51