|
Pol
Revision:cb584c9
|
#include <threadhelp.h>
Public Types | |
| typedef std::map< size_t, std::string > | Contents |
Public Member Functions | |
| ThreadMap () | |
| void | CopyContents (Contents &out) const |
| void | Register (size_t pid, const std::string &name) |
| void | Unregister (size_t pid) |
Private Attributes | |
| Contents | _contents |
| Clib::SpinLock | _spinlock |
Definition at line 40 of file threadhelp.h.
| typedef std::map<size_t, std::string> Pol::threadhelp::ThreadMap::Contents |
Definition at line 43 of file threadhelp.h.
| Pol::threadhelp::ThreadMap::ThreadMap | ( | ) |
Definition at line 259 of file threadhelp.cpp.
| void Pol::threadhelp::ThreadMap::CopyContents | ( | Contents & | out | ) | const |
Definition at line 307 of file threadhelp.cpp.
References _contents, and _spinlock.
Referenced by Pol::Clib::handleStackTraceRequestLinux(), Pol::Clib::ExceptionParser::logAllStackTraces(), and Pol::Core::threadstatus_thread().
| void Pol::threadhelp::ThreadMap::Register | ( | size_t | pid, |
| const std::string & | name | ||
| ) |
Definition at line 281 of file threadhelp.cpp.
References _contents, _spinlock, and ERROR_PRINT.
Referenced by Pol::Core::start_threads(), Pol::threadhelp::thread_stub2(), and Pol::threadhelp::ThreadRegister::ThreadRegister().
| void Pol::threadhelp::ThreadMap::Unregister | ( | size_t | pid | ) |
Definition at line 296 of file threadhelp.cpp.
References _contents, and _spinlock.
Referenced by Pol::threadhelp::run_thread(), and Pol::threadhelp::ThreadRegister::~ThreadRegister().
|
private |
Definition at line 56 of file threadhelp.h.
Referenced by CopyContents(), Register(), and Unregister().
|
mutableprivate |
Definition at line 55 of file threadhelp.h.
Referenced by CopyContents(), Register(), ThreadMap(), and Unregister().