blob: f20b58993e6f3df8a96e73ed23c1afb11239439d [file] [log] [blame]
Michael Sartain9f822cd2013-07-31 23:27:46 +00001//===-- LinuxThread.h -------------------------------------------*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9
10#ifndef liblldb_LinuxThread_H_
11#define liblldb_LinuxThread_H_
12
13// Other libraries and framework includes
14#include "POSIXThread.h"
15
16//------------------------------------------------------------------------------
17// @class LinuxThread
18// @brief Abstraction of a Linux thread.
19class LinuxThread
20 : public POSIXThread
21{
22public:
23
24 //------------------------------------------------------------------
25 // Constructors and destructors
26 //------------------------------------------------------------------
27 LinuxThread(lldb_private::Process &process, lldb::tid_t tid);
28
29 virtual ~LinuxThread();
30
31 //--------------------------------------------------------------------------
32 // LinuxThread internal API.
33
Ed Maste7fd845c2013-12-09 15:51:17 +000034 // POSIXThread overrides
35 virtual bool
Ed Maste8958af32013-12-09 22:34:49 +000036 Resume();
Ed Maste7fd845c2013-12-09 15:51:17 +000037
Michael Sartain9f822cd2013-07-31 23:27:46 +000038 virtual void
39 RefreshStateAfterStop();
40
41protected:
42 virtual void
43 TraceNotify(const ProcessMessage &message);
44};
45
46#endif // #ifndef liblldb_LinuxThread_H_