2013-08-01 07:27:46 +08:00
|
|
|
//===-- LinuxThread.h -------------------------------------------*- C++ -*-===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef liblldb_LinuxThread_H_
|
|
|
|
#define liblldb_LinuxThread_H_
|
|
|
|
|
|
|
|
// Other libraries and framework includes
|
2014-09-28 00:54:22 +08:00
|
|
|
#include "Plugins/Process/POSIX/POSIXThread.h"
|
2013-08-01 07:27:46 +08:00
|
|
|
|
2015-03-31 17:52:22 +08:00
|
|
|
namespace lldb_private {
|
|
|
|
namespace process_linux {
|
|
|
|
|
2013-08-01 07:27:46 +08:00
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
// @class LinuxThread
|
|
|
|
// @brief Abstraction of a Linux thread.
|
2015-03-31 17:52:22 +08:00
|
|
|
class LinuxThread : public POSIXThread
|
2013-08-01 07:27:46 +08:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
|
|
|
//------------------------------------------------------------------
|
|
|
|
// Constructors and destructors
|
|
|
|
//------------------------------------------------------------------
|
2015-03-31 17:52:22 +08:00
|
|
|
LinuxThread(Process &process, lldb::tid_t tid);
|
2013-08-01 07:27:46 +08:00
|
|
|
|
|
|
|
virtual ~LinuxThread();
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------------
|
|
|
|
// LinuxThread internal API.
|
|
|
|
|
2013-12-12 04:43:27 +08:00
|
|
|
// POSIXThread override
|
2015-03-25 23:37:56 +08:00
|
|
|
void
|
|
|
|
RefreshStateAfterStop() override;
|
2013-08-01 07:27:46 +08:00
|
|
|
};
|
|
|
|
|
2015-03-31 17:52:22 +08:00
|
|
|
} // namespace process_linux
|
|
|
|
} // namespace lldb_private
|
|
|
|
|
2013-08-01 07:27:46 +08:00
|
|
|
#endif // #ifndef liblldb_LinuxThread_H_
|