xref: /haiku/src/kits/debugger/model/ThreadInfo.cpp (revision 385ee03ba83b7a40d315e17b03031b3ca37820c0)
1 /*
2  * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de.
3  * Distributed under the terms of the MIT License.
4  */
5 
6 #include "ThreadInfo.h"
7 
8 
9 ThreadInfo::ThreadInfo()
10 	:
11 	fTeam(-1),
12 	fThread(-1),
13 	fName()
14 {
15 }
16 
17 
18 ThreadInfo::ThreadInfo(const ThreadInfo& other)
19 	:
20 	fTeam(other.fTeam),
21 	fThread(other.fThread),
22 	fName(other.fName)
23 {
24 }
25 
26 
27 ThreadInfo::ThreadInfo(team_id team, thread_id thread, const BString& name)
28 	:
29 	fTeam(team),
30 	fThread(thread),
31 	fName(name)
32 {
33 }
34 
35 
36 void
37 ThreadInfo::SetTo(team_id team, thread_id thread, const BString& name)
38 {
39 	fTeam = team;
40 	fThread = thread;
41 	fName = name;
42 }
43