1/*
2 * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
4 */
5#ifndef THREAD_INFO_H
6#define THREAD_INFO_H
7
8#include <OS.h>
9#include <String.h>
10
11
12class ThreadInfo {
13public:
14								ThreadInfo();
15								ThreadInfo(const ThreadInfo& other);
16								ThreadInfo(team_id team, thread_id thread,
17									const BString& name);
18
19			void				SetTo(team_id team, thread_id thread,
20									const BString& name);
21
22			team_id				TeamID() const		{ return fTeam; }
23			thread_id			ThreadID() const	{ return fThread; }
24			const char*			Name() const	{ return fName.String(); }
25
26private:
27			team_id				fTeam;
28			thread_id			fThread;
29			BString				fName;
30};
31
32
33#endif	// THREAD_INFO_H
34