c9fc1d5064
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31143 a95241bf-73f2-0310-859d-f6bbb57e9c96
34 lines
717 B
C++
34 lines
717 B
C++
/*
|
|
* Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de.
|
|
* Distributed under the terms of the MIT License.
|
|
*/
|
|
#ifndef THREAD_INFO_H
|
|
#define THREAD_INFO_H
|
|
|
|
#include <OS.h>
|
|
#include <String.h>
|
|
|
|
|
|
class ThreadInfo {
|
|
public:
|
|
ThreadInfo();
|
|
ThreadInfo(const ThreadInfo& other);
|
|
ThreadInfo(team_id team, thread_id thread,
|
|
const BString& name);
|
|
|
|
void SetTo(team_id team, thread_id thread,
|
|
const BString& name);
|
|
|
|
team_id TeamID() const { return fTeam; }
|
|
thread_id ThreadID() const { return fThread; }
|
|
const char* Name() const { return fName.String(); }
|
|
|
|
private:
|
|
team_id fTeam;
|
|
thread_id fThread;
|
|
BString fName;
|
|
};
|
|
|
|
|
|
#endif // THREAD_INFO_H
|